add autocompleter
This commit is contained in:
parent
dbca4444bf
commit
a640e4ce05
2 changed files with 245 additions and 2 deletions
|
|
@ -196,7 +196,7 @@ commands.addCommand({
|
|||
exec: function() {alert("Fake Save File");}
|
||||
});
|
||||
|
||||
var keybindings = {
|
||||
var keybindings = {
|
||||
ace: null, // Null = use "default" keymapping
|
||||
vim: require("ace/keyboard/vim").handler,
|
||||
emacs: "ace/keyboard/emacs",
|
||||
|
|
@ -431,7 +431,7 @@ bindDropdown("split", function(value) {
|
|||
sp.setSplits(1);
|
||||
} else {
|
||||
var newEditor = (sp.getSplits() == 1);
|
||||
sp.setOrientation(value == "below" ? sp.BELOW : sp.BESIDE);
|
||||
sp.setOrientation(value == "below" ? sp.BELOW : sp.BESIDE);
|
||||
sp.setSplits(2);
|
||||
|
||||
if (newEditor) {
|
||||
|
|
@ -559,4 +559,7 @@ ace.commands.bindKey("Tab", function(editor) {
|
|||
editor.execCommand("indent");
|
||||
})
|
||||
|
||||
var Autocompleter = require("./autocompleter").Autocompleter;
|
||||
Autocompleter.addTo(env.editor)
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue