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

+1

JavaScript completion

alpha logic il y a 11 ans 0

JavaScript Completion should include:


Statement completion:

if...else if...else

switch()

for...in

while()

do...while

break

continue

with()


popup Boxes completion:

alert('message')

prompt('message', 'default value')

confirm('message')


Function completion:

return


###


Array Object Properties completion

Array Object Methods completion

Boolean Object Properties completion

Boolean Object Methods completion

toString()

valueOf()

Date Object Properties completion

Date Object Methods completion

Math Object Properties completion

Math Object Methods completion

Number Object Properties completion

Number Object Methods completion

String Object Properties completion

String Object Methods completion

RegExp Object Properties completion

RegExp Object Methods completion


###


Global Object Properties completion

Global Object Methods completion:

decodeURI()

decodeURIComponent()

encodeURI()

encodeURIComponent()

escape(string)

eval()

isFinite()

isNaN(value)

Number()

parseFloat()

parseInt()

String()

unescape()


###


Window Object Properties completion

Window Object Methods completion

Navigator Object Properties completion

Navigator Object Methods completion

Screen Object Properties completion

Location Object Properties completion

Location Object Methods completion

History Object Properties completion

History Object Methods completion

Document Object Properties completion

Document Object Methods completion


###


HTML DOM Objects Properties completion

HTML DOM Objects Methods completion

HTML DOM Objects Events completion

+1

Ctrl+w, Ctrl+w in vintage mode

Ben McRedmond il y a 12 ans 0
Ctrl+w, Ctrl+w in vintage mode would be a great addition for switching between split panes.
+1

Save on view leave dirty marker even if is_dirty is false

Rodrigue Cloutier il y a 12 ans 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 il y a 14 ans mis à jour il y a 14 ans 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 il y a 12 ans mis à jour par Jacob Gardner il y a 12 ans 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 il y a 12 ans mis à jour il y a 11 ans 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 il y a 11 ans 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 il y a 13 ans mis à jour il y a 13 ans 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 il y a 13 ans mis à jour il y a 13 ans 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 il y a 13 ans 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.