Add autocomplete option.

This commit is contained in:
Thomas Wilburn 2013-10-28 09:18:43 -07:00
parent adfb259346
commit b96692eddf
3 changed files with 8 additions and 1 deletions

View file

@ -40,6 +40,8 @@ make sure you don't have any syntax errors.
//Web workers are used for code hinting in PHP, JavaScript, and JSON.
//We don't yet have a way to set the worker options, but you can disable it.
"useWorker": true,
//autocomplete triggers on Ctrl-Space
"autocomplete": true,
//By default, the palette searches the current file only unless you widen the scope.
//If you'd like it to search all open files by default, set this option to true.

View file

@ -35,6 +35,11 @@ define(["file", "command", "settings!ace,user", "dom2"], function(File, command,
editor.setShowInvisibles(userConfig.showWhitespace || false);
editor.container.style.fontSize = userConfig.fontSize ? userConfig.fontSize + "px" : null;
editor.container.style.fontFamily = userConfig.fontFamily || null;
ace.config.loadModule("ace/ext/language_tools", function() {
editor.setOptions({
enableBasicAutocompletion: userConfig.autocomplete
});
});
};
command.on("init:startup", init);

View file

@ -1,7 +1,7 @@
{
"name": "Caret",
"description": "Professional text editing for Chrome and Chrome OS",
"version": "1.1.9",
"version": "1.1.10",
"manifest_version": 2,
"icons": {
"128": "icon-128.png"