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

+2

Easier way to get/set settings on a per-buffer basis

Bradford Larsen hace 14 años actualizado hace 14 años 0
Occasionally, I'm editing a file of a particular type, and I want to use a custom setting just for that buffer.  For example, I might want to enable word wrapping at column 60 in a particular buffer.  I do a web search to look up the console command to do this:

    view.settings().set('word_wrap', 60)

I never remember this incantation and have to look it up each time I want it.  Other editors, such as vim, have a much simpler way:

    set VARIABLE=VALUE

Perhaps a similarly lightweight way to specify custom settings on a per-buffer basis can be added to Sublime Text 2?
+2

Comments syntax coloring bug

David Čepelík hace 15 años 0
While class A {/* comment */ is a correct comment syntax in PHP, the comment is not highlighted by Sublime Text 2 b2047.
+2

Reindent lines bug in Javascript

Petter Wichman hace 13 años 0

1. "Indentation:Reindent lines" does get confused by lines with faulty indentation...
In the example below i have "Tab size set to 4" and "Indent using spaces set"

2. Another bug in the "Indentation:Reindent lines" function: it gets confused by comments.

// Before 

namespace('lala', function() {

    initialize: function() {

      _debug("lala1"); // only indented by two spaces!

        _debug("lala2");

  }

});


// After "Indentation:Reindent lines"

namespace('lala', function() {

    initialize: function() {

      _debug("lala1"); <-- still only two spaces

      _debug("lala2");

  }

});


// Expected but not actual

namespace('lala', function() {

    initialize: function() {

        _debug("lala1"); // only indented by two spaces!

        _debug("lala2");

    }

});


+2

Relate projects to folders

aristidesfl hace 14 años 0
In most of the projects, files are stored and organized inside a single folder. By using folders as a representation for projects, the process of organizing projects would be transparent or almost inexistent.

The way it works now, we are simply duplicating filesystem functionality which already allows one to symlink/alias  other folders/files into the main project folder.
+2

Difficult to see/access the directory that a file is in

Ibrahim Tencer hace 14 años actualizado hace 14 años 1
It should display this in the title bar. Right now the easiest way is to hover over the tab.

It would also be nice to have a way to go directly to the file in the tree display, since it doesn't happen automatically when you open a file.
+2
Solucionado

Matching braces doesn't quite work with CSS

Hay Kranen hace 15 años actualizado por Jon Skinner hace 15 años 1
When writing a CSS style like this:

#foo {
}

When writing the first line and pressing enter the second brace is inserted, but the cursor moves *before* this brace. It would make more sense to insert a newline, indent that line and move the cursor there.
Respuesta
Jon Skinner hace 15 años
Fixed in build 2020
+2

Line Highlight bug?

bnip hace 14 años 0
It seems like "highlight_line":true only has an effect if also "gutter":true.
Is this intentional or is it a bug?

I'd like highlighting enabled but gutter disabled if that would be possible. Thanks!
+2

Ubuntu 10.10 - minimap doesn't scroll horizontally

Arun Srinivasan hace 15 años 0
In Sublime 1 on windows, the minimap would allow me to scroll both horizontally and vertically.

On Ubuntu 10.10 with Sublime 2, I can only scroll vertically with the minimap.
+2

Delete Non-Empty Folders Linux

Jonathan Bradley hace 15 años actualizado por Martin Aspeli hace 14 años 2
Delete folders with content for Linux. Right now I think its doing a rm instead of an rm -rf if its a folder with content. This would help linux users a lot.
+2

Shell-Unix-Generic-tmLanguage add nested brace syntax highlighing

electronico hace 14 años 0
It is so simple, just has to be added in Shell-Unix-Generic-tmLanguage ...
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=6977&p=30153#p30118