Add basic emacs keybinding.

This commit is contained in:
Julian Viereck 2010-12-23 00:06:17 +01:00
commit b16bc6abc4
5 changed files with 217 additions and 23 deletions

View file

@ -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));
}
});
});