kopia lustrzana https://github.com/c9/core
commit
8fc2500d6a
|
@ -55,7 +55,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "goToNextError",
|
name: "goToNextError",
|
||||||
bindKey: bindKey("Alt-E", "Ctrl-E"),
|
bindKey: bindKey("Alt-E", "F4"),
|
||||||
exec: function(editor) {
|
exec: function(editor) {
|
||||||
config.loadModule("ace/ext/error_marker", function(module) {
|
config.loadModule("ace/ext/error_marker", function(module) {
|
||||||
module.showErrorMarker(editor, 1);
|
module.showErrorMarker(editor, 1);
|
||||||
|
@ -65,7 +65,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "goToPreviousError",
|
name: "goToPreviousError",
|
||||||
bindKey: bindKey("Alt-Shift-E", "Ctrl-Shift-E"),
|
bindKey: bindKey("Alt-Shift-E", "Shift-F4"),
|
||||||
exec: function(editor) {
|
exec: function(editor) {
|
||||||
config.loadModule("ace/ext/error_marker", function(module) {
|
config.loadModule("ace/ext/error_marker", function(module) {
|
||||||
module.showErrorMarker(editor, -1);
|
module.showErrorMarker(editor, -1);
|
||||||
|
@ -190,7 +190,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "selecttostart",
|
name: "selecttostart",
|
||||||
bindKey: bindKey("Ctrl-Shift-Home", "Command-Shift-Up"),
|
bindKey: bindKey("Ctrl-Shift-Home", "Command-Shift-Home|Command-Shift-Up"),
|
||||||
exec: function(editor) { editor.getSelection().selectFileStart(); },
|
exec: function(editor) { editor.getSelection().selectFileStart(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
|
@ -206,7 +206,7 @@ exports.commands = [{
|
||||||
aceCommandGroup: "fileJump"
|
aceCommandGroup: "fileJump"
|
||||||
}, {
|
}, {
|
||||||
name: "selectup",
|
name: "selectup",
|
||||||
bindKey: bindKey("Shift-Up", "Shift-Up"),
|
bindKey: bindKey("Shift-Up", "Shift-Up|Ctrl-Shift-P"),
|
||||||
exec: function(editor) { editor.getSelection().selectUp(); },
|
exec: function(editor) { editor.getSelection().selectUp(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
scrollIntoView: "cursor",
|
scrollIntoView: "cursor",
|
||||||
|
@ -220,7 +220,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "selecttoend",
|
name: "selecttoend",
|
||||||
bindKey: bindKey("Ctrl-Shift-End", "Command-Shift-Down"),
|
bindKey: bindKey("Ctrl-Shift-End", "Command-Shift-End|Command-Shift-Down"),
|
||||||
exec: function(editor) { editor.getSelection().selectFileEnd(); },
|
exec: function(editor) { editor.getSelection().selectFileEnd(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
|
@ -236,7 +236,7 @@ exports.commands = [{
|
||||||
aceCommandGroup: "fileJump"
|
aceCommandGroup: "fileJump"
|
||||||
}, {
|
}, {
|
||||||
name: "selectdown",
|
name: "selectdown",
|
||||||
bindKey: bindKey("Shift-Down", "Shift-Down"),
|
bindKey: bindKey("Shift-Down", "Shift-Down|Ctrl-Shift-N"),
|
||||||
exec: function(editor) { editor.getSelection().selectDown(); },
|
exec: function(editor) { editor.getSelection().selectDown(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
scrollIntoView: "cursor",
|
scrollIntoView: "cursor",
|
||||||
|
@ -264,7 +264,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "selecttolinestart",
|
name: "selecttolinestart",
|
||||||
bindKey: bindKey("Alt-Shift-Left", "Command-Shift-Left"),
|
bindKey: bindKey("Alt-Shift-Left", "Command-Shift-Left|Ctrl-Shift-A"),
|
||||||
exec: function(editor) { editor.getSelection().selectLineStart(); },
|
exec: function(editor) { editor.getSelection().selectLineStart(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
scrollIntoView: "cursor",
|
scrollIntoView: "cursor",
|
||||||
|
@ -278,7 +278,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "selectleft",
|
name: "selectleft",
|
||||||
bindKey: bindKey("Shift-Left", "Shift-Left"),
|
bindKey: bindKey("Shift-Left", "Shift-Left|Ctrl-Shift-B"),
|
||||||
exec: function(editor) { editor.getSelection().selectLeft(); },
|
exec: function(editor) { editor.getSelection().selectLeft(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
scrollIntoView: "cursor",
|
scrollIntoView: "cursor",
|
||||||
|
@ -306,7 +306,7 @@ exports.commands = [{
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}, {
|
}, {
|
||||||
name: "selecttolineend",
|
name: "selecttolineend",
|
||||||
bindKey: bindKey("Alt-Shift-Right", "Command-Shift-Right"),
|
bindKey: bindKey("Alt-Shift-Right", "Command-Shift-Right|Shift-End|Ctrl-Shift-E"),
|
||||||
exec: function(editor) { editor.getSelection().selectLineEnd(); },
|
exec: function(editor) { editor.getSelection().selectLineEnd(); },
|
||||||
multiSelectAction: "forEach",
|
multiSelectAction: "forEach",
|
||||||
scrollIntoView: "cursor",
|
scrollIntoView: "cursor",
|
||||||
|
|
|
@ -77,6 +77,12 @@ define(function(require, exports, module) {
|
||||||
}, {
|
}, {
|
||||||
bindKey: {win: "Ctrl-z", mac: "Cmd-z"},
|
bindKey: {win: "Ctrl-z", mac: "Cmd-z"},
|
||||||
name: "\u0018\u0015" // "ctrl-x ctrl-u"
|
name: "\u0018\u0015" // "ctrl-x ctrl-u"
|
||||||
|
}, {
|
||||||
|
bindKey: {win: null, mac: "Cmd-Left"},
|
||||||
|
name: "\x1b[1~" // "ctrl-x ctrl-u"
|
||||||
|
}, {
|
||||||
|
bindKey: {win: null, mac: "Cmd-Right"},
|
||||||
|
name: "\x1b[4~" // "ctrl-x ctrl-u"
|
||||||
}];
|
}];
|
||||||
|
|
||||||
specialKeys.addCommands(aliases);
|
specialKeys.addCommands(aliases);
|
||||||
|
|
Ładowanie…
Reference in New Issue