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

+2

Copy file name and/or file location from its tab's context menu

R K 13 jaar geleden 0

 In a collaborative environment, I often have to quickly send someone the name and/or location of the file I'm currently working on. My previously used editor had an option to copy that info from the context menu of the file's/buffer's tab directly to the clipboard, which is really handy, especially if the paths are really long and nested deeply.


The options in my previous editor were like this (example path and file: /very/long/path/to/my/working/directory/file.pm):

- 'Copy full path' -> /very/long/path/to/my/working/directory/file.pm

- 'Copy file name' -> file.pm

- 'Copy directory name' -> /very/long/path/to/my/working/directory/


This would be so perfect. :)

+2

Python auto-suggestions

Andrew B 13 jaar geleden bijgewerkt door FichteFoll 13 jaar geleden 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 13 jaar geleden 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 13 jaar geleden 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 14 jaar geleden bijgewerkt door adzenith 14 jaar geleden 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 13 jaar geleden bijgewerkt 13 jaar geleden 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 12 jaar geleden bijgewerkt 11 jaar geleden 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 12 jaar geleden 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 jaar geleden 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 jaar geleden bijgewerkt 13 jaar geleden 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?