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

+2

Code folding bug

I don't know it's bug or feature, but this error exists both in second and third version of Sublime Text.

Image 242

+2
Completed

Be able to remap the ctrl, alt, shift, and command keys in OSX so they behave like on PC

Chris Hulbert 14 years ago updated by Jon Skinner 12 years ago 2
I've come from a PC using Notepad++ where i can, eg, hold ctrl and press an arrow to jump between words. But on OSX i need to hold alt to do the same thing. It'd be GREAT if there was an option to remap this, and all the other shortcuts, on osx. PLEASE
Answer
Jon Skinner 14 years ago
All key bindings are configurable. Take a look at Packages/Default/Default (<platform>).sublime-keymap, and copy the bindings you'd like from the Windows version into the OSX version.
+2

save_on_focus_lost doesn't check that the file has been deleted

zee 13 years ago updated 13 years ago 0
When save_on_focus_lost is enabled, deleting the file and then switching to ST and back leads to the file being immediately recreated with the old name. If I delete the directory, ST will start complaining that it couldn't save the file. ST should check that the file exists before saving and disable autosave if it's gone.
+2

Clojure regexes are not parsed properly

Anthony Grimes 13 years ago updated 13 years ago 2
Here is an example regex: #".*\"(.*)\".*"

That regex breaks Clojure highlighting, making Sublime Text 2 thing that the last quote is the start of a new string.
+2

Command palette crash

Reinier Kip 13 years ago updated 13 years ago 3
The command palette crashes when one does as follows:

1. Ctrl+P: Search for a file
2. Mouseclick on any entry.

This does not occur when selecting an entry by pressing RETURN.

Platform:
Windows 7 64-bit
+2

There should be an easy way to add a new line to a comment.

Patrick Paul-Hus 13 years ago updated 13 years ago 0
When typing a comment in ruby, I'd like it if either pressing return would automatically add a new commented out line or if there was a shortcut to do so. I believe in Textmate fn-return does this.
+2

smart indent on new line after brackets

cresus18 12 years ago 0
Try typing the following then hit the Enter key to insert a new line:

$foo = substr_replace($bar, ' ON(', $pos, $length);

A bug makes your new line start with an extra indentation. If you remove the open bracket within the string in the function call, it will now work as expected.

(Sublime Text 2 build 2181)
+2

Execute selected code

Рябов Валерий 12 years ago 0

It would be great to have opportunity building not a file, but execute only selected region of code. It may help to work with big SQL-scripts, for example.

+2

Scala code indents when there's an open parenthesis in a string

Simon Morgan 13 years ago updated by Aleksandar Prokopec 12 years ago 1
Create a new Scala file and enter the following:
println("(")

When you hit enter at the end of the line, the new line is indented when it shouldn't be.

+2

HTML perfect completion

alpha logic 12 years ago 0

HTML perfect completion should work mainly in 3 stages:

1.tag completion (realized in Sublime Text 2);

2.attribute name completion (realized in Sublime Text 3, not tested yet);

3.attribute value completion.

Completion must start with tag completion (works perfectly in Sublime Text 2).

Tag completion must be followed by attribute name completion (not all the attributes, but only the specific attributes for a specific tag).

Attribute name completion must be followed by attribute value completion (not all the values, but only the specific values for a specific tag), with cursor placed between quotation marks "|".