+24

Display syntax selectors with unicode characters (aka Vim's conceal)

Iván -DrSlump- Montes 12 лет назад обновлен Doug Avery 11 лет назад 2

In Vim 7.3 they added a really nice feature allowing to display some syntax regions (selectors) as configurable unicode characters. It makes much easier to read some languages, like the following example for Javascript where "function" has been replaced by "𝑓", "this." by "@" and "return" by "" .



With the recent inclusion of code folding, which allows for "inline" folds, I think the editor is ready to implement this feature without much effort. 


I've tried to implement a plugin for this but I'm lacking one API function, which could work just like View.fold but allowing to set a custom character and syntax selector for its display, instead of the currently hardcoded fold icon.

+24

Improve discoverability of Sublime's functionality

Joel Thornton 13 лет назад обновлен Jean-Denis Vauguet 12 лет назад 2
Sublime Text (both 1 and 2) are packed with great functionality, and packages add much more. However, it often takes a web search to find out about some of Sublime's more obscure features.

Improve the discoverability of Sublime's manifold functionality. Some ideas:

* Optional tips-on-startup dialog (with "don't show next time" checkbox); especially useful for new users of the demo version

* Add a mechanism like `apropos` to search for commands/keybinds that may do what you want. Having a short plain-English description with each command would improve search discoverability. Descriptions would need to be associateable with both commands and specific keybinds. Add a help menu item labeled "I want to..." to open the apropos prompt.

* Add a mechanism for the user to get context-sensitive help for any keyboard command or menu item. Wire it up to a wiki to let the community help build up these docs.

* Add a help menu item "Keyboard shortcuts" which generates a human readable list of the current keybindings in a new buffer. This list could sort the binds by keystroke and include the short `apropos` description for each keybind.

* Require installed packages to provide apropos-style descriptions of all their commands and key bindings.

* Allow package creators to include a help file with their package. Make these help files accessible through a new help menu item "Package Help >".
+24

Do not copy an empty string to the clipboard when Ctrl-C is pressed and nothing is selected.

Teddy Knox 12 лет назад обновлен 12 лет назад 0
Pretty self explanitory
+24

show the differenet version of codes like timemachine.

mactanxin 12 лет назад в Plugin announcements обновлен beer mz 10 лет назад 1
It would be cool if sublime can show different versions of code though a timemachine style with svn or git etc. Besides the code overview slidebar you can add a versions list. click the diff version you can hover diffs or split out a new frame to show the old version of this file.
P.S. I'm not a native Englist-speaking ppl.hope you can understand what I trynna to describe : )
+24

copy with syntax colors/as styled text/as rtf

Mark Magnus 12 лет назад обновлен Yoomin Wu 10 лет назад 1
+24

Insert file creation date or current date into snippet

Chris Browne 12 лет назад обновлен Kiran Singh Randhawa 8 лет назад 1

It would be great if there were a snippet variable for various dates (current date, file creation date, file last-modified date) in order to craft informative file-heading comments that give away some clue as to the age of a file and how often it's updated.

+23

Custom GUI for output panels (html based?)

Giorgio 12 лет назад обновлен tsinhi 11 лет назад 4
I just started evaluating sublime text – it's beautiful, but one thing is stopping me from deciding to switch to sublime from textmate.

I (quickly!) wrote a PostgreSQL plugin that executes the current paragraph through psql and shows the output in a panel. The output however is text only and there seem to be no way to format it decently... (same goes for quick html preview, markdown preview and similar)

Any chance you're adding support for GUI output panels?
Being able to display an html file (and pass it some js object/variable) would be great and allow for previews and custom GUIs alike....

+23

Syntax highlighting for files without extensions (like Rakefile, Gemfile)

Brad Gessler 13 лет назад обновлен Alex Gray 8 лет назад 4
I'd love to be able to set syntax highlighting for files that don't have extensions, like Gemfile, etc through the 'View' > 'Syntax' > 'Open all with current extension as...' menu.
+23

Multiple open windows to the same file use the same edit window instance.

Mark Watson 12 лет назад обновлен Greg Anderson 12 лет назад 2
Currently in the latest dev version of sublime if I have the same file open in multiple windows, edits to the same file are not synchronized across windows. This results in me saving a version in one window and then auto reloading it another will cause me to lose all the changes I made in the other window.

In emacs multiple open panes and views are always editing the same buffer so edits are automatically propagated across the views. It  would be really nice if Sublime text behaved in this way.
+23

Allow dragging files out of the sidebar and into different applications

Oliver Beattie 12 лет назад обновлен Marko Novak 12 лет назад 1
I use a Mac, and I've come to pretty much expect anywhere I see a file to be able to drag it to different applications. While you have implemented the file icon in the title bar thing, which is brilliant, I can't drag a file from the sidebar into another app.

For instance, if I have a .html page I want to open in my web browser, I find myself naturally dragging it into my Chrome window, only to find it didn't work.

If you could implement this, I'd love you forever.
+23

Side Bar doesn't update on moved files

Rolands Atvars 13 лет назад обновлен Roman Vorushin 12 лет назад 4
Currently when a file is moved into a project that is opened in sidebar, the containing folder doesn't show that file until I force some other changes in that folder (like create/remove some files).

When file is moved from one folder in project to another folder in project, then file disappears from the previous folder but doesn't show up in the new folder until I force refresh the new folder again.

Usually I move files with terminal either:
 * mv /path/to/file.ext /path/to/new/location/file.ext
 * git mv /path/to/file.ext /path/to/new/location/file.ext

Possible fix would be to change the way folders are monitored for changes or adding a another context menu item 'Refresh' when a folder is right clicked in sidebar.

System I am working on:
 * 32bit Ubuntu Linux 10.04LTS (Lucid Lynx)
 * GNOME v2.30.2
 * Sublime Text 2 v2091 (but the same happened on all previous Sublime Text 2 releases)

Thanks!
+23

Add option to close tab by double-clicking it

stijn 12 лет назад 0
title says it all. Can be found for example in Opera and NotePad++. Once the option is there, logical next step would be to add one that hides the close button on the tab.
+23

"Use Selection for Find" should use global register instead of per-window.

Dan Rogers 12 лет назад обновлен Ricci Adams 12 лет назад 4
In almost all other editors on OSX, the Command+E shortcut will place the selected text into a system-wide register so that the selection can be used as the search string in other apps + windows. 

Use case example: Select some text in Safari, hit Cmd+E, then switch to a file in TextEdit (or TextMate, MacVim, Xcode) and hit Cmd+G to find the string from the global register. This string would also populate the search field in the Cmd+F dialog box.

Question: This seems to be an intentional behavior to isolate the find strings between separate windows in ST2. Can we have a setting to allow Command+E to use the global clipboard/register instead?
+23

Insert Tab vs. Paste Tab

Zach Riggle 13 лет назад обновлен Кирилл Улановский 11 лет назад 1

If indentation settings are "indent using spaces", then auto-indentation and the TAB key should insert spaces.


When a TAB character ("\t") is pasted from the clipboard, it should remain a tab character. 

+23

Use "sticky headers" to display current class and method

Desmond Brand 10 лет назад 0
This idea is not specific to Python, and would probably be useful if implemented generally based on indentation, but I'm going to describe it in terms of Python for clarity.

I often use "go to definition" to jump directly to a method. But it's sometimes hard get context because I can't see which class the method is inside of - I have to scroll up, sometimes really far, to see what the class is.

My idea is to reserve one line at the top of screen for each level of indentation of the current line. Then show the "parent" line as a "sticky header" at the top of the editor. The "sticky header" is often found in iOS, for example the contact list. Here's a video that illustrates the point. The class would always be visible on the first line, the method visible on the second. Maybe it could be useful to go further than this and make if statements and loops sticky, but I'm not sure about that.

Here's an example of the code review tool Phabricator doing this. Note the line number of the class is 185, but the first line shown is 201. The rest of the body has been collapsed so that the class line remains visible for context.


For a more extreme example, consider the following 5 line display. Obviously on such a small display the lines lost to headers reduce the amount of space you have to see the actual body, but a small example makes it easiest to see how this would work.
class LineZero(object):
    first_line = "bar"
    def second_line(self):
        third_line = "baz"
        fourth_line = 42
Right now if you scroll that, the class line disappears from view:
    first_line = "bar"
    def second_line(self):
        third_line = "baz"
        fourth_line = 42
        fifth_line = 5
I'm proposing that the class statement (as the root node in the tree of indentation) become "sticky", so instead the first line of the class scrolls out of view like this:
class LineZero(object):
    def second_line(self):
        third_line = "baz"
        fourth_line = 42
        fifth_line = 5
Then if you scrolled one line further, the method line would be sticky, and the first line of the method body scrolls out of view:
class LineZero(object):
    def second_line(self):
        fourth_line = 42
        fifth_line = 5
        sixth_line = None
+23
Завершен

Keyboard shortcut to close tag

Matt Powell 13 лет назад обновлен Jon Skinner 12 лет назад 1
A keyboard shortcut to close the current tag (in HTML/XML mode) would be fantastic. It's one of the things I really miss from TextMate.
Ответ
Jon Skinner 13 лет назад
This was added in build 2111
+23

subl with no window open doesn't open the file

Mark Fowler 12 лет назад обновлен Tom B 10 лет назад 5
Passing a filename to the "subl" command line tool when no Sublime Text 2 window is open causes a new window to open with "Untitled" to appear, but the filename isn't opened. 
+22

Fix Ruby incorrect syntax highlighting of 1.9 hash keywords that use a reserved word.

Tony Mann 11 лет назад обновлен Jeremy Taylor 10 лет назад 3

This post explains the problem well. Hash tags like "end" and "class" in the new 1.9 Hash literal format are hightlighted incorrectly. The post contains a fix that works perfectly, namely to edits the Ruby language file by moving the block of code at lines 201-208 to line 1570.

+22

Hide horizontal scrollbar when map is displayed

Tomas Sardyha 13 лет назад обновлен hced 11 лет назад 8
As the map is doing the same thing, it is useless to have the scrollbar there as well.
+22

Tab groups

AgileApricot 12 лет назад обновлен Deepak M 10 лет назад 5
Like Firefox's "Tab Groups" feature it would be really useful to have a way of saving a particular set of files and screen layouts for a project.

I often open a certain set of files and change the panel layout when i'm working on one feature but need a different set of files and layout for another feature. It would be great to be able to save these layout groups and flick between them like projects.

Сервис поддержки клиентов работает на платформе UserEcho