cut, tmoutdent, tmindent

Esse commit está contido em:
Chris Wanstrath
2011-08-19 02:34:17 -07:00
commit 7f518fedc6
+11
Ver Arquivo
@@ -42,6 +42,11 @@ Chrome.bindKey 'copy', 'Command-C', (env, args, request) ->
text = editor.getSession().doc.getTextRange editor.getSelectionRange()
Chrome.writeToPasteboard text
Chrome.bindKey 'cut', 'Command-X', (env, args, request) ->
text = editor.getSession().doc.getTextRange editor.getSelectionRange()
Chrome.writeToPasteboard text
editor.session.remove editor.getSelectionRange()
Chrome.bindKey 'eval', 'Command-R', (env, args, request) ->
eval env.editor.getSession().getValue()
@@ -50,6 +55,12 @@ Chrome.bindKey 'eval', 'Command-R', (env, args, request) ->
Chrome.bindKey 'togglecomment', 'Command-/', (env) ->
env.editor.toggleCommentLines()
Chrome.bindKey 'tmoutdent', 'Command-[', (env) ->
env.editor.blockOutdent()
Chrome.bindKey 'tmindent', 'Command-]', (env) ->
env.editor.indent()
# emacs > you
Chrome.bindKey 'moveforward', 'Alt-F', (env) ->