Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

+2

Subtract select not working properly (API)

Kroum Tzanev 12 aastat tagasi 0

If a < b < c, when we subtract the region [a,b] from the region [a,c] the result is [a,a] (or empty) and not the expected [b,c].


>>> view.sel().clear()
>>> view.sel().add(sublime.Region(0,10))
>>> view.sel().subtract(sublime.Region(0,5))
You can see that everything is working ok if you replace on of the two 0s by 1 or 2 for example. 
Note : You should move the scroll bar to update the selections in the view. 
+2

Goto Anything Doesn't Support Goto Symbol In Project

Daryl Robbins 11 aastat tagasi 0
Goto Anything currently lets you Goto, well, just about anything, except for a Symbol In Project. To be consistent with the existing feature, it should also let you search across the entire project for a symbol (i.e. by typing @@symbol or some other shortcut).
+2

Whitespace trimming leads to issues when autosave is enabled

zee 13 aastat tagasi uuendatud 13 aastat tagasi 0
Enabling both trim_trailing_white_space_on_save and save_on_focus_lost leads to somewhat unpleasant behavior. For example, I'm editing a python file and I've got the cursor on a new line (properly indented to 3-4 tabs/4-space groups), or I've just started writing an assignment (with something like foo = <cursor> in the editor). If I switch to some other app and then switch back, cursor will jump to the beginning of line or erase whatever spaces I had at the end of current line, and then I'll have to reinsert these spaces manually. This is even more annoying if this is the last line and ensure_newline_at_eof_on_save is also set — the cursor is forcibly moved to the next line whenever you cmd-tab. I understand that ST doesn't support virtual whitespace (hopefully it will do in the future), but perhaps you could add some hack to fix this specific issue?
+2

Don't destroy files when encountering characters that can't be encoded

Brynjard Øvergård 12 aastat tagasi 0

Today when Sublime saves a file and encounters a character that can't be encoded in eg ISO-8859-1, it automatically converts it to UTF-8 (and informs you with a popup dialog with just one option - OK). This destroys the file (UTF-8 encoding is in many cases non reversible), so it would be nice if this instead was a question. It would also be very nice if Sublime could highlight or somehow search for unencodable characters (characters like non-braking space is _very_ difficult to distinguish from a normal space).

+2

Make pressing CTRL-F while the search bar is visible should put the field in focus rather than closing it

Acorn 14 aastat tagasi uuendaja Alan Andersen 14 aastat tagasi 1
I often have the problem that I press CTRL-F because I want to search for something, begin typing, and find that I am overwriting some text on the page.

This is because the search bar was already open when I typed the shortcut and was therefore closed.

I think it would be more user friendly if pressing the shortcut just put your focus in the search box, and if you want to close the bar you should press ESC (which closes it already).
+2

I would love to be able to treat functions independantly of files on the screen.

Philip David Harvey 13 aastat tagasi 0
There is an IDE coming called Light Table that does this. But it will not support the languages I like. To be able to treat method blocks as independent entities would be great.
+2

Open new document on "Open Files" empty space click.

Murray Nuttall 13 aastat tagasi 0
Like the tab bar functionality, but on the "Open Files" sidebar.

I don't use the tab bar because it doesn't give me enough file information when editing a lot of files. So I hide the tab bar and use the "Open Files" sidebar instead.

I would like to be able to click, or double click, empty space in the sidebar to create a new document.
+2

Disable autosave

Алексей Ракеев 13 aastat tagasi uuendatud 12 aastat tagasi 6
How could I turn off damn autosave "feature"?
It recreates files deleted from sidebar again and again. WTF?
+2

Ability to disable a keyboard shortcut

Simon Boudrias 12 aastat tagasi 0

 With the growing number of community packages, each one adding their own keyboard shortcut, we're to a point where we can run into conflict. May it be internationals keyboard configuration, shortcuts overwriting others plugins ones, etc.


I think we should be able to disable/protect some specific keyboard key from being used. This would allow the user to prevent packages from removing some important characters or system wide shortcuts.

+2

Search for a word under cursor

Maxim Razin 12 aastat tagasi uuendaja Martin H 12 aastat tagasi 1

Is there a keyboard shortcut or plugin to search for other occurrences of a word under cursor, like vim * and # commands?