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

+2

Python auto-suggestions

Andrew B fa 12 anys updated by FichteFoll fa 12 anys 1
Hi, is there a possibility for autosuggestion after I have imported such module? For example I import os module and then in the code I type os.(and at this point I want to see suggestions about all possible methods, functions, etc. in that module.
+2

OS X: Scroll bar does not respect system preference "Click in the scroll bar to jump to the spot that's clicked"

Andy Durdin fa 13 anys 0
In OS X Snow Leopard, when the user has configured scroll bars to “Jump to the spot that's clicked” (instead of the default “Jump to the next page”), Sublime Text 2 (build 2111) incorrectly scrolls by a page when clicked.

Additionally, when this preference is enabled and the user drags in the scroll bar, it should jump to the location and continue to scroll to the corresponding location the user drags to. (Incidentally, this is the same scrolling behaviour as the minimap provides.)

This system preference is found at: System Preferences > Appearance > Click in the scroll bar to:

+2

Project 1 file scan blocks project 2 file scan

Scott Bowers fa 13 anys 0

I have a lot of projects and I need to context-switch frequently.  Some of these projects are quite large and some of these are on remote volumes, which take a while to scan. When this process starts, and I need to switch to a different project, the new project will not start to scan the files until the previous one finishes.


Use case: I work on remote project X on day one, finish and close out sublime. When I work on project Y on day two, I open sublime to find that it instantly starts scanning project X.  When I switch to project Y, sublime sits there, not letting me Goto Anything or see any of my files until the previous scan finishes.  Only then will it start scanning project Y

Also, sublime throws away the directory scan of project X when I switch to project Y.  This means that a quick fix for project Y means that I have to then wait for an entire scan of project X.  Sublime should be able to hold on to this information, so I can quickly switch between X/Y without having to wait. 

In my opinion it would be best to:

1) Sublime caches the file scan of your projects. When you switch to a project, immediately use the cache so I can start editing files and being productive.
2) Display an indication in the file tree and goto anything of entries that have not been verified
3) Scan files in the background to verify
4) When I switch to a project, pause any existing scans and start scanning it immediately.

+2

Have "Goto Anything" should respond to other "Goto *" keyboard commands

Shayne Sweeney fa 14 anys updated by adzenith fa 13 anys 3

I love the Goto Anything menu, I use it religiously. I also use the more specific Goto menus, like the line, or symbol ones.


I find myself often hitting the keyboard command for another Goto action while using the Goto Anything menu. I think this addition would be useful and easy to implement.

Here's an example of how it might work:

Hit Command-P, start typing the name of the file and narrow it down, highlighting the one you're after.

Now press Command-R, you are now searching through symbols in the highlighted file. The string in the text field for the Goto Anything menu shows an "@" appended. You can backspace to return to the previous state.


+2

Show current symbol/function in status bar (near current language)

Jonathan Beebe fa 13 anys actualitzat fa 13 anys 2
I love the built-in symbol browser (Cmd+R), but many times I'd like to just quickly see which symbol/function I'm currently in. For instance, in BBEdit, the symbol browser is "always on" and updates the current item based on where you are in the document.

I like how the symbols menu is accessed via Cmd+R in Sublime Text 2 (rather than being always on/always visible), so how about have the option to show the current symbol in the status bar (near the currently selected Language, for instance)?

I think this feature would be very useful to many different people, and for me personally, would put the final nail in the coffin of all other Mac OS X text editors :-)
+2

Increase responsiveness for projects stored on network drives

Nathan Walasek fa 12 anys actualitzat fa 11 anys 3

All of my project files are hosted on a shared network drive, which is mapped to a drive letter in Windows 7. After opening the project in ST2, I attempt to navigate through directories and many times (especially on larger projects) it appears as though that directory is empty (the toggle-arrow changes, but no files/folders appear). Only after waiting for several minutes do the files appear.

+2

Subtract select not working properly (API)

Kroum Tzanev fa 12 anys 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 fa 12 anys 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 fa 13 anys updated by Alan Andersen fa 13 anys 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 fa 13 anys 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.