Merge pull request #47 from jartek/add-keyboard-shortcut-for-explain
Added key binding for explain
This commit is contained in:
commit
a9448a8cdd
@ -253,8 +253,7 @@ function initEditor() {
|
|||||||
editor.getSession().setMode("ace/mode/pgsql");
|
editor.getSession().setMode("ace/mode/pgsql");
|
||||||
editor.getSession().setTabSize(2);
|
editor.getSession().setTabSize(2);
|
||||||
editor.getSession().setUseSoftTabs(true);
|
editor.getSession().setUseSoftTabs(true);
|
||||||
|
editor.commands.addCommands([{
|
||||||
editor.commands.addCommand({
|
|
||||||
name: "run_query",
|
name: "run_query",
|
||||||
bindKey: {
|
bindKey: {
|
||||||
win: "Ctrl-Enter",
|
win: "Ctrl-Enter",
|
||||||
@ -263,7 +262,16 @@ function initEditor() {
|
|||||||
exec: function(editor) {
|
exec: function(editor) {
|
||||||
runQuery();
|
runQuery();
|
||||||
}
|
}
|
||||||
});
|
}, {
|
||||||
|
name: "explain_query",
|
||||||
|
bindKey: {
|
||||||
|
win: "Ctrl-E",
|
||||||
|
mac: "Command-E"
|
||||||
|
},
|
||||||
|
exec: function(editor) {
|
||||||
|
runExplain();
|
||||||
|
}
|
||||||
|
}]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user