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

+1

Drag To Open

Liam Corrigan il y a 12 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 12 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 13 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 14 ans mis à jour il y a 14 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 12 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....


+1
Terminé

Add keyboard shortcut for Save As

Hay Kranen il y a 14 ans mis à jour par Jon Skinner il y a 14 ans 4
A common shortcut that's missing: Ctrl/Cmd-Shift-S to 'Save As'.
Solution
Jon Skinner il y a 14 ans
OS X Save As key binding has been added in build 2020
+1

Project panel sizing issue (build 2051)

toothrot il y a 14 ans mis à jour il y a 14 ans 1

Resize the project panel small enough so you have a scrollbar. Scroll all the way to the right. Enlarge the project panel until the scrollbar disappears. Whoops, now all the filenames are cutoff with no scrollbar.
Small inconvenience, but I think the right edge of the content should remain anchored to the splitter until the panel becomes larger than the contents..

Image 1