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

+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 "|".

+2

windows open folder refresh folder contents

Helly Hao 12 years ago 0
as files or folders in the opend folder changed,it's nice to refresh the folder content by some order
+2

Autocomplete suggestions are not in expected order

Craig Campbell 13 years ago updated 13 years ago 0
+2

Mousemap bindings in menu

James Brooks 14 years ago updated by .:. brainsik 13 years ago 1
A menu item, like the key bindings would be nice so you can quickly change mouse bindings, as you can keys.
+2

Find and replace improvements: git grep and Vintage mode compatibility

Tom Scott 13 years ago updated by Thomas Wright 12 years ago 1
I think the "Find and Replace" panel could be improved in a few different ways:

  1. I would definitely like an option to use the `git grep` command as it's much faster to search through the entire project.
  2. Currently, one has to type in the absolute path of the folder to your project in the include filter, if you'd like to search just within a specific folder. Why is this necessary? Is there a way we could have an option to use a relative path? I've never needed to search an outside folder on my machine from within my current project.... 
  3. If it's not too difficult, I'd also like a Vintage mode shortcut for getting into and manipulating the find/replace panel. It would be awesome if `%s/../..` and `s/../..` would open and enter data into find/replace dialog, with the omitted "%" triggering the full path of the current file to be injected into the open files filter (middle input).
I really love this product, it's keeping me away from using MacVim/Vim entirely (which is nice, but missing some stuff I've grown quite fond of in Sublime), but there are some areas where it definitely could improve. I hope by my purchase, you guys will continue to have at least some funding to build this awesome editor, that I really enjoy using. Thanks!
+2

Improved Bookmarks

-9701 12 years ago 0
Just 3 points:
  • Save and Restore Bookmarks for a file on Close and Open 
  • On the Bookmark menu print not only the line number where the Bookmark is placed, but also a part (beginning) of this line -- it'll help a lot to navigate within Bookmarks (specially when the function names are used or particular part of the text/code)..
  • On the "minimap" show a color horizontal line for every Bookmark within a file --  it will help a visual navigation within a file and a fast click to the right position.
Hope you'll agree to implement it. Personally, I'd love to see them ;-)
Otherwise, MANY THANKS for the excellent editor!!! 
Rgds,
-Dimitri
+2

Closing a tab will cause multiple file highlights in the sidebar

Austin Cargol 13 years ago updated 13 years ago 0
When you close a tab, it will remain highlighted. If you have other tabs open, and the editor switches to that file when you close a tab, both files will be highlighted in the sidebar, this will continue as long as you have files to fall back on as you close tabs.