untangle keybinding.js
This commit is contained in:
parent
d62c0aa08e
commit
97b00ea46b
4 changed files with 67 additions and 82 deletions
|
|
@ -284,6 +284,9 @@ exports.commands = [{
|
|||
name: "indent",
|
||||
bindKey: bindKey("Tab", "Tab"),
|
||||
exec: function(editor) { editor.indent(); }
|
||||
}, {
|
||||
name: "insertstring",
|
||||
exec: function(editor, str) { editor.insert(str); }
|
||||
}, {
|
||||
name: "inserttext",
|
||||
exec: function(editor, args) {
|
||||
|
|
@ -318,21 +321,15 @@ exports.commands = [{
|
|||
}, {
|
||||
name: "unfold",
|
||||
bindKey: bindKey("Alt-Shift-L", "Alt-Shift-L"),
|
||||
exec: function(editor) {
|
||||
editor.session.toggleFold(true);
|
||||
}
|
||||
exec: function(editor) { editor.session.toggleFold(true); }
|
||||
}, {
|
||||
name: "foldall",
|
||||
bindKey: bindKey("Alt-0", "Alt-0"),
|
||||
exec: function(editor) {
|
||||
editor.session.foldAll();
|
||||
}
|
||||
exec: function(editor) { editor.session.foldAll(); }
|
||||
}, {
|
||||
name: "unfoldall",
|
||||
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
|
||||
exec: function(editor) {
|
||||
editor.session.unfold();
|
||||
}
|
||||
exec: function(editor) { editor.session.unfold(); }
|
||||
}];
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue