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

+1

Side Bar Scrolling Behavior

Zander Milroy il y a 12 ans 0
"Right Click > Reveal in Side Bar" will highlight a file as expected, but only scrolls the side bar to put the selected file into view if the file is contained within a folder that is not expanded. I feel regardless of folder state, the side bar behavour should be consistent, either always scrolling or never scrolling.
I'd prefer it to always scroll, as right now "reveal in side bar" sometimes appears to do nothing if there are a large number of files/folders in the side bar.
+1

Delete line doesn't delete blank lines (Ctrl+Shift+K)

Josh Bjornson il y a 14 ans 0
The new macro for delete line (Ctrl+Shift+K) doesn't delete blank lines. If you change the macro to use left_delete instead of right_delete it will delete blank lines.
+1

Drag To Open

Liam Corrigan il y a 11 ans 0

Drag files from the sidebar into a panel to open them there.

+1

Hit "D" for "discard" on unsaved changes modal window

Mark Slater il y a 11 ans 0
Photoshop has a nifty feature that, when trying to close a document with unsaved changes, allows you to hit "d" for "Discard" in the Save as... modal window.


+1

Doc suggestion:

J Connolly il y a 12 ans 0
for these instructions (http://www.sublimetext.com/docs/2/osx_command_line.html), the code that worked for me using default settings included a slightly different second directory: sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl

You guys rock
+1

Newly folder should be expanded 1 level when added to project

Russell Keith-Magee il y a 14 ans mis à jour par Nick Farina il y a 13 ans 2
When adding a folder to a project, it is added in a "closed" state. The first action will almost always be to open that folder. The default expansion state of a newly added project folder should be to open the top level (i.e., if I add folder Foo, I should see all the files and subfolders of Foo without needing to manually expand the folder).
+1

Indentation to match Google style guide in indent to bracket mode

Peter Hawkins il y a 12 ans mis à jour par Luc Bourhis il y a 12 ans 1

I'd like to write code matching Google's C++ style guide:

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Function_Declarations_and_Definitions#Function_Declarations_and_Definitions


Indent to bracket mode supports this style already:

ReturnType ClassName::ReallyLongFunctionName(Type par_name1, Type par_name2,
                                             Type par_name3) {
  DoSomething();
  ...
}

In the event that the parameters are too long to fit on the line, I'd like to use this style:

ReturnType LongClassName::ReallyReallyReallyLongFunctionName(
    Type par_name1,  // 4 space indent
    Type par_name2,
    Type par_name3) {
  DoSomething();  // 2 space indent
  ...
}
+1

Click on completion list does nothing

Aparajita il y a 13 ans mis à jour il y a 13 ans 2
If I bring up a completion list and directly click on an entry, the list closes but nothing happens. Shouldn't that entry be inserted the same as if it were selected and Return was pressed?
+1

Input Bar for Java, Ruby etc.

Kelan Torch il y a 13 ans 0
It would be amazing, if we could have sublime give us a dialog box when we are getting input through Scanner(Java) and gets (ruby) etc... that way we don't always have to use the command line/ terminal. If this could be implemented, I would probably even donate to Sublime over and above my paid version.
+1

ignore leading "./" in GOTO ANYTHING

lh2im il y a 11 ans 0

performing a grep on shell/terminal will give me a file result like:

./folder1/file1.ext: .....

./folder1/file2.ext: .....

./folder2/folder1/file1.ext: .....


doubleclick on the filename will copy "./folder1/file1.ext"


perform GOTO ANYTHING shortcut in sublime and paste the filename.

nothing shows up because of the leading "./" string. you have to cut off the "./" or if grepping from subfolder just the "."


would be awesome if GOTO ANYTHING would ignore this leading pattern. Maybe ignoring just a leading "/", will be helpfully for someone too....