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

+2

Rectangular block selection capability (in addition to multiple cursors)

William Payne 13 aastat tagasi 0

Whilst the ST2 multiple cursors feature is excellent in it's own right, (and indeed superior in many respects) I still find myself missing the 'feel' of the rectangular selection tool that I used to use (frequently) in Textpad back when I used a Win32 development machine.


When I started using ST2, I was not sure if I was simply not used to multiple cursors, but I have been using ST2 for over 6 months now, and I still miss the old rectangular selection mode, so I have now come to the conclusion that it actually offers something that multiple cursors do not.


I do love multiple cursors; but a rectangular selection mode a-la-Textpad would be a welcome addition.


(I used it to help edit and vertically align code, parameter blocks, and CSV data files).

+2

ctrl+alt+p fuzzy matching should exclude '.sublime-project'

Bartek Bartek 12 aastat tagasi 0

 with some names that contain, let's say 'sub', the mathcing is less robust, this is a minor thing but nonetheless

+2

@media queries don't seem to be indexed when using cmd+r

Robdev Cambridge 11 aastat tagasi 0

To reproduce:

- Open a CSS file with @media{} queries

- Hold cmd and tap R to invoke the in-file fuzzy finder

OR

- Hold cmd and tap T, then type @

Attempt to find a media query by typing "media"


Expected result:

A list of available media queries to jump to


Actual result:

An empty list (or a list of rules which happen to contain "media")

+2

The ability to expand sublime user setting in the .sublime-build, like the limited build variable expansion.

Mike Chilton 12 aastat tagasi uuendaja Emanuele D'Osualdo 12 aastat tagasi 1
For example:-
In  makefile.sublime-build I could do the following set up
"cmd": ["make","${settings:buildtype}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder:${file_path}}}",
"selector": "source.makefile", 
So as a user I could define a user setting "buildtype:"release" which I could change to "buildtype:"debug" to quickly change between build types, this would also allow me to easily create new ones, like "master", by simple editing my my build system (which is different to make) and changing the user settings, without having to create variants or edit the .sublime-build file etc.  Would be most useful for such things as multi-platform builds, as I could also define multiple user settings, for example settings for a  buildtype and buildplatform in so doing create multiple platform builds with "cmd": ["make","${settings:buildtype}_${settings:buildplatform}"]. I think this would be a simple but powerful addition to the sublime-build implementation.
+2

Non indentation folding by custom %codes or phrases%

Denis Abramov 11 aastat tagasi 0

Currently if I have a large code. I'm separating it by comments and indentations to fold them later.


For example:


// Views

... some views code here ...


// Models

... some models here


But when the code gets really big, indentation becomes so large, that it's starting to annoy.


Would be better if there would be some codes for folding, to avoid indentation at some point of hierarchy.


For example:


// Views fold_start_1

... some views code here without indentation at all ...

// fold_end_1


Now you can fold all the code between fold_start_1 and fold_end_1.


Ofc folding codes could be shorter, it's just as an example

+2

Ruby API, pleeeeeeeease!!!

Juan Falgueras 12 aastat tagasi 0

I have been programming in Tcl for Alpha on Macs for many years.  It had very complete API, similar to the ST2 one.  TextMate came with this very short API based only in environmental variables, but with those genial ideas. In that case the programming language was totally free, since TM is based in external scripting.  And now ST2.  It obliges you to script in Python.  I didn't know Python, although read a lot about and programmed a bit on it.  But each time I dig into the ST2 API to program on Python… I miss Ruby so much!  Please, try Ruby!  Give it an opportunity.

+2

Catch and deny key presses before they get into the view

Oktay Acikalin 14 aastat tagasi uuendatud 14 aastat tagasi 2
How can I catch key presses and deny them before they get into the view without setting up key bindings? I want to catch all user input and then decide what to write into the view.
+2

Change newline_at_eof installation preference to true

MarkDBlackwell 12 aastat tagasi 0

It is a general, widely known practical observation that (at least some) people will leave (at least some of) their software preferences unchanged after installation.

Upon installation, the preference whether newlines are ensured at EOF on save is false.

This installation default is wreaking a small degree of havoc with programmers using versioning systems including git.

The reasonable and usual practice of software in Unix and elsewhere is to expect, and to maintain, that all lines end with a newline. This includes the final line. For more information, here are two links:

http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline

http://slashdot.org/comments.pl?sid=165492&cid=13808398

To be more precise, after installation, in Default/Preferences.sublime-settings these statements occur:

  // Set to true to ensure the last line of the file ends in a newline
  // character when saving
  "ensure_newline_at_eof_on_save": false,

This should be changed instead so after installation automatically the statements are:

  // Set to false to ensure the last line of the file does not end in a newline
  // character when saving
  "ensure_newline_at_eof_on_save": true,

Further, the editor must not display a new empty line after saving as it does now when this preference is set to true. This even though there is a final newline.

The editor may be treating newlines erroneously as line separators and not correctly as line terminators. This possibility is described in the links above.

+2

Improve selected item highlight from the filtered list (the one used by "Goto Anything..." / CTRL-P)

Carlos K. 13 aastat tagasi 0
in some situations, with a low number of files in the filtered list (2 or 3) it's hard to tell apart the item that is currently selected from the other ones listed. Could we add a bit more of highlight love to that selection? Maybe a thin border around the row or something like that?

For instance, in the following image can you easily tell which item is selected?


+2

"Close All Files" in the File menu should close all saved files first.

Ronald Jett 12 aastat tagasi 0

Alternatively, you could implement a Close All Saved Files option.