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

+1

Textmate like snippets (at least in LaTeX)

zurry irigaray 12 lat temu 0

In TextMate in LaTeX bundle, you have 4 different types of calling snippets (I will put a very understandable example, $0 is the placement of the cursor):

  • LaTeX symbol based on current word. i.e. If you write s and you use this command you get \sigma $0.
  • Command Based on current word. i.e. if you write s and use this you get \sum_{$1}^{$2} $0.
  • Environment based on current word. i.e. if you write s and use this you get \begin{s} $0 \end{s} (or what you have defined before).
  • And, at last, Snippets (true snippets, as simple as in Sublime Text). i.e. if you write mat and press Tab button you get \begin{${1:pvbPVBsmall}matrix} $0 \end{matrix} (exactly, at least the same way as in Sublime Text).

I wish you could add this option to your program, I mean, one (configurable) key combination for each one of this four kinds of snippets. Anyway, I wait for your answer (saying yes or no, but please tell me you read that). In case of NO as answe, I would really appreciate to hear about your reason.


Ah, and a very very nice program. 

+1

Some way to choose which window new files are opened in

chaiguy 13 lat temu 0

Currently, opening a file in the Finder will open the file in the last-used window (if "open_files_in_new_window" is disabled, which imo it should be by default). However, this is not very intuitive as I won't necessarily want the file to end up in that window.


It would be handy if we could designate a "default" window that new files are opened in (perhaps clicking a little icon on the window somewhere).


The way BBEdit does it that I find works quite well is that new files (that aren't already open elsewhere) open in a single non-project window. Typically I will have a bunch of project windows open and another catch-all window for misc files I'm working on that don't belong to an open project.

+1

Option to ensure file ends with empty line upon saving

demetris 13 lat temu zaktualizowano 12 lat temu 2
Does Sublime Text have an option for this?

(For those familiar with SciTE, I am talking about the option named: ensure.final.line.end.)
+1

Open function reference when pressed F1

Joshua Foster 9 lat temu 0
When one needs to know what a function does. There are two ways of doing it.
1. With a reference help file (chm), searching for the function there
2. Going to the language reference site (i.e.: php.net) and search there

So the suggestion is to add a setting to set a help file path which sublime will open and search for the function behind the cursor and the when F1 is pressed.
Or if not configured, open a browser and go to the language site and it's function page
+1

The default HTML snippets are not up to the HTML5 standard

MrPenguin 11 lat temu 0

The default HTML snippets <script> and <style> and <link rel="stylesheet" href=""> style have type="text/css" or type="text/javascript", which are both irrelevant in HTML5. They are quite annoying to delete.

+1

Crash when changing to 4 column layout

Josh Sleeper 12 lat temu 0
Sublime Text 2 v2.0.1, build 2217
Windows 7 x64 Professional

If I switch to the 4 column layout from any other layout ST2 will crash, with the following exception:
If I'm already in a layout other than "Single", and I have one or more files in any of the other panes, then ST2 will not crash.

However, even if I successfully switch to 4 column mode using the exception listed above, if I then move all files back to the first pane, upon removing the last file from the other panes, ST2 will crash.
+1

different color themes in mulitple windows.

christian Wilmes 11 lat temu 0

use case:

- many different projects with similar file structure in many opened windows

- sublime displays project name only in the title bar if no file is opened

- hard to tell which project belongs to which window


idea:

- allow assignement of color theme in the sublime-project file.

- so every project is opened with it's own color theme

- you can see immediatly what's the meaning of this window


+1

Need a phased (or at least blinking) block caret.

Philip Wright 12 lat temu 0
I see lots of requests for a block size caret, but I'm going to lose it on the screen if it's not phasing or blinking.
+1

Awesome incremental symbol find

Pau Sanchez 12 lat temu 0

The idea is to use something similar to "Go to anything" where you only type some letters that are contained in the symbol you want to go to, and you automatically go to symbols containing those letters in that order, but limiting the search to symbols inside the document (since most languages, if not all, support the same pattern for symbols, and you don't want to search text or anything like that, just references to functions or variables).


Imagine you have a document like this:

void function () {

   doSomething (whatever, "this is a string");

   if (runUltraComplexCheck (var1, var2)) {

      simple_variable = 1;

      doSomethingElse ();

   }

}


Now, the idea is that if you are at the beginning of the document and you run "incremental symbol find" and you press "f" the first word "function" would be selected. If I type "d" then the first "doSomething" would be selected, and so if I run find next, then the "doSomethingElse" symbol would be selected. It should behave as a normal search so find previous and find next would work.


On the other hand, imagine I want to go to "doSomethingElse", then I go to incremental symbol search and type "dse" then automatically doSomethingElse would be selected. In the same scenario, typing "ru" or "rucc" or "run" or "rcheck" would all select "runUltraComplexCheck", which is the only word in that document matching that pattern.


Again, if you type "sv" in incremental symbol search, you would go to "simple_variable".


I think this kind of feature would be as awesome as "Go to Anything", and no other editor has something like this... I guess it can be written using a plugin, but anyway, native would be great.


To sum up the features:

  • incremental symbol find inside current doc
  • a symbol is defined as [_a-zA-Z][_a-zA-Z0-9]+
  • discard searching inside comments
  • discard searching inside text strings
  • be able to use find next / find previous

+1

File Modified status can scroll off tab. Move to left?

highfructose 13 lat temu zaktualizowano 13 lat temu 1
File Modified status (asterisk/bulletpoint) appears on the right after the file name in the associated tab.  Since file names can scroll off tabs in cases where many tabs exist/file names are long, this results in the modified indicator being hidden from view.


I should always be able to glance at the tab strip and identify which files are modified and which ones are not.  Because of this issue, sometimes it's impossible to tell, which is frustrating.


Even changing to an unknown-status tab doesn't help, because the obscured name doesn't appear.  Mouseover of the tab shows the file location, still no help.  The only way to tell (in Mac OS) is because the icon at the top of the window title bar becomes slightly grey for modified files (I believe this is a systemwide visual effect). There should be a simpler way to know at-a-glance what's modified and what isn't.


(Using Build 2095, Mac OS)