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

+3

Layout bookmarks

Nathan Gray fa 13 anys actualitzat fa 13 anys 0
I often find myself switching between two kinds of layout.  I think of them this way:
  • project mode:  two 100-column groups, sidebar enabled, minimap enabled, window takes up most of the screen
  • simple mode: one 100-column group, no sidebar or minimap, window is easily placed alongside another window
Right now it's really difficult to switch a new window from one mode to another.  For example, if I've got a window in project mode and I want one in simple mode I need to do the following:
  1. View -> Side bar -> Hide Side bar
  2. View -> Hide Minimap
  3. View -> Layout -> Single
  4. Manually resize the window to about 100 colums width
Going from simple mode to project mode is similarly a chore.

I would like a way to define layout bookmarks that will switch between these layout modes with a single trip to the View menu (or keystroke shortcut) with no need to manually resize windows.  Ideally these bookmarks would capture most of the View menu's options, such as:
  • Window size
  • Pane layout state (# rows/columns)
  • Hidden/shown state for:
    • Side bar
    • Tabs
    • Status bar
    • Minimap
    • Console
  • Word wrap settings
  • Ruler settings
Thank you for considering this request!

+3

select dashed separated words on double click

Asa Williams fa 13 anys updated by Travis Roberts fa 12 anys 2
When you double click on a word that is dashed separated (this-is-dashed-separated) it selects the entire word.  This would be really helpful for html/css.  The biggest reason for not using dashes in css is for this reason. Many popular libs (twitter's bootstrap) use dashes and it would make web dev's lives a lot easier.
+3

Fix display of symlink folders in side bar

Corey Frang fa 11 anys 0
Symlinks and folders cause some really really weird bugs in sublime text's project browser. As seen on ST 2.0.2 - Mac OS X 10.9.1:

https://gist.github.com/gnarf/99dcda98a8438e4d7a3f
+3
Fixed

Cmd+P doesn't work right after opening ST without a file loaded

marksteve fa 14 anys updated by Jon Skinner fa 14 anys 1
Cmd+R does and then Cmd+P works again.
Answer
Jon Skinner fa 14 anys
Fixed in build 2020
+3
Fixed

Spell checker handling of accented characters

grumpus fa 13 anys updated by Jon Skinner fa 12 anys 3

Sublime Text 2 allows the user to add a new spelling dictionary. For example: to install a Polish dictionary on a Mac, you can download a MySpell dictionary and unzip the files (pl_PL.aff and pl_PL.dic) it into the following path: 

~/Library/Application Support/Sublime Text 2/Packages/Language - Polish


The spell checker can then be activated by selecting from the View > Dictionary menu.


Unfortunately the spell checker can only handle words without any accented (extended Latin) characters. 


Any word with such a character is considered to be misspelled and is underlined.


In order for the spell checker functionality to make sense, this bug must be fixed. 

Answer
Jon Skinner fa 13 anys

Some documentation was recently added on how to handle this, at http://www.sublimetext.com/docs/2/spell_checking.html


In short, Sublime Text 2 supports UTF-8 encoded dictionaries only, and you should be good to go if you convert your dictionary to UTF-8.

+3

Add external directories to goto definition search in project or user settings

Noel Peden fa 11 anys 0

It would be great to include external directories (for libraries, etc.) to a project's goto definition search. E.g. in Rails, or in any ruby script, gem directories could be included and definitions jumped to. I am sure many languages would benefit by this. No doubt priority in results should be given to project files.

+3

Remove file from the project and from the list of opened files on "Delete File" menu click

Roman Vorushin fa 13 anys 0

Otherwise it stays in editor and can be restored again, especially with enabled "save_on_focus_lost" setting

+3

allow escape characters in find/replace

Michael Zap fa 12 anys 0
I very often need to find/replace multiple lines of text, and usually I do that in Notepad++ using /n escape characters. But these aren't recognized as new lines in Sublime, so I can't do multi-line find/replace. For example I often replace \n\n with \n</p><p>\n when I'm turning plain text into HTML code.

Alternatively you could allow for a multi-line dialog when finding/replacing (think textareas instead of input fields). I think that PHP Expert Edit did that back when I used it. That would also work for my purposes.
+3

Reveal in side bar should focus it

Kai Grossjohann fa 13 anys actualitzat fa 13 anys 0
If I execute the command "reveal in side bar", then the idea is that I will want to interact with the side bar next, so it would be useful to focus the side bar straight away, as if I had typed Ctrl+0.

It could be that it makes a difference whether the side bar is visible at the time when "reveal in side bar" is executed:  Perhaps we will want to focus the side bar if it was not visible before the "reveal" command, but we might not want to focus the side bar if it was already visible.

My personal opinion is to give it focus no matter whether it was visible.  But you may disagree.
+3

Mid-Snippet Placeholder Tab cancelling/escaping/forgetting

Jake Wilson fa 13 anys 0

When using a snippet that has placeholders in it, while in the snippet you TAB from one placeholder to the next.


It's great, except most of the time when working with a snippet, while I am mid way through the snippet, it's more efficient for me to manually move to a different part of the snippet and start typing something else.  But the next time I press TAB, my cursor jumps to the next placeholder after the last placeholder I was at before I moved elsewhere manually.


It would be very nice that if the user used any navigation keys (arrow keys, home, end, page up, page down, etc) while mid-snippet, that Sublime would "cancel" out of the "snippet TAB mode".  So after moving elsewhere, pressing TAB no longer moved you to the next snippet placeholder.  Sort of like, once you move elsewhere mid-snippet, it would be nice if SublimeText2 would "forget" that you were in a snippet.  So the next tab was treated like a normal tab instead of a key that moved you back to the next snippet placeholder.


In most cases (at least for me), when moving elsewhere during the snippet, that basically means that I'm done with the snippet and I need to continue to something else.  I don't want to press TAB and be moved BACK into the snippet again.


Another place this is extremely useful is using snippets within snippets.  Take the following HTML snippet:


<table>

  <tr>

    $1

  </tr>

  <tr>

    $2

  <tr>

<table>


After typing "table" and pressing TAB, it creates the snippet and moves your cursor to $1.  Then, lets say you have a <td>$1<td> snippet you want to use next.  If you type "td" and press TAB, then it doesn't create the TD snippet for you.  Instead it types "td" and then moves you to $2 in the above snippet.


It would be great if SublimeText2 would detect that if a snippet tabTrigger was typed while within a Snippet, then the first Snippet was forgotten and it would now work with the new snippet you just typed.


This sounds pretty confusing. I hope it makes sense...