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

+5

OS X should resume in fullscreen

Todd Kennedy 12 year бұрын 0
If an app is quit on OS X Lion when it's in Full Screen, the app should re-open in fullscreen when re-launched.
I'm really lazy and hate clicking the full screen button
+5

Edit files with no permission

hiver yan 13 year бұрын 0
On mac, I can't save it. 
I suggest give me a notice to authorization. Like other editor
+5

Problems with smb shares

jonrandy 13 year бұрын 0
With a network folder added to a project I don't seem to be able to navigate more than 3 levels deep in folder structure. Share mounted with smbmount. No problems with other apps
+5

'Ensure newline at EOF' could do to trim extra newlines.

Itai Ferber 12 year бұрын 0
The 'ensure newline at EOF' option in ST2 checks to see if the file ends in a newline, and if not, adds one. However, it doesn't trim any excessive newlines. So if a file ends in, say, 7 newlines, it doesn't trim them to just one.

By default, EnsureNewlineAtEof looks like the following:
class EnsureNewlineAtEof(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("ensure_newline_at_eof_on_save") == True:
            if view.size() > 0 and view.substr(view.size() - 1) != '\n':
                edit = view.begin_edit()
                view.insert(edit, view.size(), "\n")
                view.end_edit(edit)

I think it would be really nice if it could trim excessive newlines, like so (this code doesn't mess around with the position of the cursor, so you don't get scrolled up or down in the file):
class EnsureNewlineAtEof(sublime_plugin.EventListener):
    def on_pre_save(self, view):
        if view.settings().get("ensure_newline_at_eof_on_save") == True:
            if view.size() > 0:
                edit = view.begin_edit()
                content = view.substr(sublime.Region(0, view.size())).rstrip()
                view.erase(edit, sublime.Region(len(content), view.size()))
                view.insert(edit, len(content), os.linesep) # linesep is used for cross-platform compatibility - and line encodings - but "\n" works too for the most part.
                view.end_edit(edit)

I've added this code to a custom plugin, but it would be much nicer to get this behavior by default. Or at least, get an additional option to trim excessive newlines from files.
+5

acces shortcuts from command palette

Alexandru Iga 12 year бұрын 0
in numerous occasions some of the shortcuts i use are overridden by a plugin, i would just love the possibility to have in command palette the possibility to type something like "shortcuts: ctrl+shift+n" that will display all the shortcut files that use that shortcut.
+5

Hints from many files

Andrei Misarca 13 year бұрын жаңартылды 13 year бұрын 0
Hey, Sublime Text 2 is really great, but it would be extremely nice if the code hints available would include words from all the files in project, or at least from the currently opened files (like gedit)
+5

Vintage mode should implement tilde key to change case

Duane Johnson 13 year бұрын 0
In Vi(m), the tilde key (~) normally toggles upper/lower case text.
+5

There should be an Auto Format feature

Ecil Teodoro 13 year бұрын жаңартылды 13 year бұрын 0
An Auto Format feature just like CTRL+ALT+L on RubyMine.
+5

Add .htaccess to regonized file types

Leo Koppelkamm 13 year бұрын жаңартылды 13 year бұрын 1
+5

API support to write plugins for marking the file with custom labels/ decorating its bar with signs

Tamas Szebeni 12 year бұрын 0

I would like to find a plugin very useful which can run a command in behind to check the current file's custom attributes, this is like integrating sublime with other tools like perforce when I can check a file out for editing in my plugin but I can't mark that file with custom signs/labels to indicate that its already checked out (something like the option dirty, just controlled by my plugin I would create and not cleared when saving).


Thank you