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

+2

Non indentation folding by custom %codes or phrases%

Denis Abramov 12 år siden 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 13 år siden 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 år siden opdateret 14 år siden 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 år siden 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 år siden 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 år siden 0

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

+2

Project File Definitions

AJ Michels 13 år siden 0

For project settings it would be nice to be able to define "files" as well as "folders".  Sometime there are files that might exist outside of a directory.  Rather than including an entire folder only to exclude all but one or two files it would be nice to be able to just include specific files.  This could take many of the same parameters as the folders, name, path, etc.  Of course the exclude patterns wouldn't make sense to include.


Example:

{
    "files":
        [
            {
                "path": "/path/to/my/file.txt"
            },
            {
                "path": "/path/to/my/other/file.txt"
            }
        ]
}


PS. Great work.  This is an awesome project.  I am hoping I can get our whole development team using it.

+2

Prose with Ease

Hamish 12 år siden 0
I'm a writer not a coder but Scrivener on Linux (still in beta) is not yet able to handle the number of files and the sizes that I'm working with.  Sublime Text can, though it lacks a few of the basic features that would make it just as useful.  I'm not talking about the text formatting, which really gets in the way anyway and can be done in a word processor/LaTex later.  But being able to compile and export files as EPUB / PDF / concatenated txt, also being able to arrange the different txt files into a tree structure and also being able to edit them in a continuous draft.  Sublime Text is great as it opens instantly, I can work with thousands of fragments at once, but there does not seem to be anyway of ordering these.  Also it is hard to find specific settings and resources, tutorials solely for the prose writer....make all this a bit easier, or even have another version without any of the coding tools, and you'll have a whole new market....
+2

Rainbow Mode

AbeEstrada 13 år siden opdateret 13 år siden 0
Would be nice to have this functionality. I tried to create a syntax highlight but it seems impossible to change the background on the fly.

Original
+2

Separation of Layout and Groups

Andrew Ho 13 år siden opdateret 13 år siden 0
The idea is to separate the Layout/Group into two completely different concepts/entities.

Right now, the Layout determines the Groups (e.g. 2-column Layout automatically creates 2 Groups, http://i42.tinypic.com/30rnxi8.jp). Rather than doing this, my idea is to have the ability to create Groups that each have its own individual Layout that can be changed. Doing this implies that only one Group and it's pages are shown in the display window at any one time.

To help visualize, taking a look at the same screen shot above, all the tabs we see in both the left and right columns would be within the same Group (let's say Group 1). Say there is also a Group 2 with the files footer.phtml and footer.css, that group and its files would NOT be visible in the window, except in the Side Bar (or maybe somewhere else on the screen if the Side Bar is hidden). Switching to Group 2 (either by clicking the Group on the Side Bar or hitting ctrl+2) would then switch to viewing only the files within Group 2 using whatever Layout was originally selected for that Group. Because each Group can have it's own Layout, Group 1 could have a 2-column layout, and Group 2 could have 2-row layout.

Using myself as an example on how I would use this feature; I personally do a lot of web programming, so often I find myself editing 2-3 different files (phtml, css, js) to make changes to a single page. I am also often editing more than just one page at a time, so as I edit more and more pages, the tab count quickly gets out of hand. With this proposed idea, I could easily group each of my phtml/css/js files into Groups for each page I am editing, reducing tab clutter since the display window only displays the files in the current Group in focus. I could also change the layout for each Group independently, though I personally would most likely just leave each Group in single-page layout since I enjoy having lots of screen real-estate.

This idea provides significantly more flexibility than the current Layout/Group system for organizing one's working environment.

Kundesupport af UserEcho