Add basic emacs keybinding.
This commit is contained in:
parent
ffca65d15e
commit
b16bc6abc4
5 changed files with 217 additions and 23 deletions
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
define(function(require, exports, module) {
|
||||
|
||||
var lang = require("pilot/lang");
|
||||
var canon = require("pilot/canon");
|
||||
|
||||
canon.addCommand({
|
||||
|
|
@ -249,5 +250,12 @@ canon.addCommand({
|
|||
name: "indent",
|
||||
exec: function(env, args, request) { env.editor.indent(); }
|
||||
});
|
||||
canon.addCommand({
|
||||
name: "inserttext",
|
||||
exec: function(env, args, request) {
|
||||
env.editor.onTextInput(lang.stringRepeat(args.text || "",
|
||||
args.times || 1));
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue