Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.
JavaScript completion
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
Ctrl+w, Ctrl+w in vintage mode
Save on view leave dirty marker even if is_dirty is false
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)
Tab characters should be counted as multiple columns
Shift + F10 should open context menu in Windows.
ST ignores Shift + F10, it is standard for opening context menu in other applications and Windows in general.
Extend window when activating side bar (like a drawer)
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.
with auto_complete_commit_on_tab set to true, return does not clear autocomplete list
Support opacity in selectionBorder theme color
Cursor in Vintage command mode is a little funny
Paste doesn't work on Mac OS when using non-english keyboard layout
Service d'assistance aux clients par UserEcho