Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.
Pressing escape in the Find Dialogue should take you back to where you were
Add a "match_quotes_single" option to the preferences
Some potential improvements to the explorer-system within the editor
The thing that i miss compared to my old editor(Aptana) is moving files and folders(into each other). I can only do this within windows explorer. It's also not possible to start a new project(without placing it into an existing folder), or to create a new folder without doing this in windows explorer. So I would really suggest that you guys do some improvements at the project explorer.
highlight multiple occurrences
Add a fast open feature
Use correct $PATH on OS X
Sublime Text 2 does not pickup the correct $PATH variable on OS X. It's configurable in ~/.MacOSX/environment.plist and most GUI programs use it. Sublime Text 2 should use this as wel.
Slow keyboard repeat
I have my key repeat speed set to max. When I delete characters in an unsaved document, the repeat is slower than usual. Running 2.0.1 2217 on mac osx
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)
Kundesupport af UserEcho