2013-09-04 19:45:06 +00:00
|
|
|
define(["command", "editor"], function(command, editor) {
|
|
|
|
|
2013-09-06 02:44:42 +00:00
|
|
|
//this is a place to put bindings that don't have direct equivalents in Ace, but are required for Sublime compatibility
|
|
|
|
|
|
|
|
command.on("sublime:expand-to-line", function() {
|
|
|
|
editor.execCommand("gotolinestart");
|
|
|
|
editor.execCommand("selecttolineend");
|
|
|
|
});
|
2013-09-04 19:45:06 +00:00
|
|
|
|
2013-09-06 03:01:24 +00:00
|
|
|
//we also add a command redirect for firing Ace commands via regular command attributes
|
|
|
|
|
|
|
|
command.on("ace:command", function(cmd) {
|
|
|
|
editor.execCommand(cmd);
|
|
|
|
});
|
|
|
|
|
2013-09-04 19:45:06 +00:00
|
|
|
});
|