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

+1

Save on view leave dirty marker even if is_dirty is false

Rodrigue Cloutier 12 лет назад 0

The following plugin will create a new file, open the new file, write to it and then save. Even though the file is marked as not dirty, the tab indicate that it is dirty and trying to close the file prompt the save dialog.


import sublime, sublime_plugin
target = None
def insert_world(view):
    edit = view.begin_edit()
    view.insert(edit, 0, "Hello world!")
    view.end_edit(edit)
    view.run_command('save')
    print view.is_dirty() # print False
class SaveStillDirtyBugListener(sublime_plugin.EventListener):
    def on_load(self, view):
        global target
        if target is None:
            return
        if view.file_name() == target.file_name():
            insert_world(view)
            target = None
class SaveStillDirtyBugCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        with open('test', 'w+') as test:
            test.close()
        view = self.view.window().open_file('test')
        if view.is_loading():
            global target
            target = view
        else:
            insert_world(view)

+1

Tab characters should be counted as multiple columns

Oleg Oshmyan 14 лет назад обновлен 13 лет назад 1
For the purposes of the column number indicator in the status bar, a tab character is a single column, but visually it may take, say, four columns. To aid visual column numbering as well as compiler error unscrambling at the same time, the status bar could list a ‘column number’ and a separate ‘character number’.
+1

Shift + F10 should open context menu in Windows.

Ahmet Altay 12 лет назад обновлен Jacob Gardner 11 лет назад 1


ST ignores Shift + F10, it is standard for opening context menu in other applications and Windows in general.

+1

Extend window when activating side bar (like a drawer)

Ross A. Reyman 12 лет назад обновлен 11 лет назад 2

When you view/invoke the side bar in Sublime Text 2, the width of the window stays constant—the side bar appears on the left, code in the middle and the mini-map on the right. This usually “squishes” the code view…


It would be nice if there was a way to keep the code and mini-map locked to a specific width and force the window to grow wider when you invoke the side bar. Displaying it as a "drawer" is not really necessary, but making the window expand is mainly what I am suggesting.


+1

with auto_complete_commit_on_tab set to true, return does not clear autocomplete list

Benson Russell 11 лет назад 0
So if you have auto_complete_commit_on_tab set to true, if you invoke an autocomplete list and press enter, the autocomplete list will remain while the cursor will jump down a line (usually behind the autocomplete list).  It seems that if you only want to commit on tab, that pressing enter should clear the list off the screen.
+1

Support opacity in selectionBorder theme color

Matthew Lloyd 13 лет назад обновлен 13 лет назад 0
I use a tiny 6x10 font similar to Proggy that makes use of the top row of pixels in each glyph. The top row gets concealed whenever there's a selection, and I'd like to make the selectionBorder color partly transparent to avoid obscuring important parts of some characters (e.g. the top of an 'f'), e.g. by changing the color in the theme from #222218 to #22221880 or something. This doesn't seem to work yet on Windows.
+1

Cursor in Vintage command mode is a little funny

Ibrahim Tencer 13 лет назад обновлен 13 лет назад 0
It doesn't play well with the mouse - it's apparent that the cursor is actually located to the left of the underline. If you click in the right half of a character it will go to the one to the right of it. And when you click at the end of the line the cursor actually moves to the left to compensate.
+1

Paste doesn't work on Mac OS when using non-english keyboard layout

Yuri Krotov 13 лет назад 0
When I try to paste clipboard into Sublime Text 2, it won't work unless I switch to US keyboard layout. I tried hotkey (Command-V), context menu and main menu.

At least Russian keyboard layout causes this problem.
+1

scroll_past_end=false: buffer scrolls not restored

U N. 13 лет назад 0

When having `scroll_past_end` set to false, workspace buffer scroll positions are not restored upon Sublime close & relaunch, or project switch, except the first visible buffer. Cursor positions within each of buffers are preserved, and selections are preserved too, but all but one buffer scroll positions are reset to top.
Having `scroll_past_end` set to true, scroll positions are preserved properly, both on relaunch and project switch.

+1

Quad Vertical Pane?

Jeff Yeo 14 лет назад обновлен Oktay Acikalin 14 лет назад 4
I have 2 Wide screen monitors. I loved using 4 vertical panes in sublime text 1. I realized you can't do that in Sublime 2.
Bring it back please!

Сервис поддержки клиентов работает на платформе UserEcho