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 år siden 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

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

Brynjard Øvergård 11 år siden 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 13 år siden opdateret af Alan Andersen 13 år siden 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 12 år siden 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 12 år siden 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

Алексей Ракеев 12 år siden opdateret 12 år siden 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 år siden 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 år siden opdateret af Martin H 12 år siden 1

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

+2

Option: show open files inline rather than in a separate list

muffy 11 år siden 0

I prefer to display open files in the sidebar instead of in tabs. It would be great to have an option to show open files inline in the folder view rather than a separate list. I think of my files grouped like my folder structure and frequently switch between files in the same folder. The open files list is a jumble of files. I can drag them around but that's more work—I already organized the files into folders. Along with this when opening a project, folders containing open files should be expanded by default so the files are visible. Please keep the one-click to display feature for open files though. In fact, I suggest it be the default behavior.

+2

javascript auto completion on prototype

julien barbay 13 år siden 0
I really don't know if it's easy to do so, but i'd love to see javascript autocompletion on custom functions, based on prototype discovery.

I'm not really sure how to do this, thing i'm sure is i'm gonna try ; but any support / help would be very cool. 

Kundesupport af UserEcho