summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-12-20 13:04:46 -0500
committerKris Maglione <maglione.k@gmail.com>2010-12-20 13:04:46 -0500
commitbd4ad25901b051e9c253b1f9d069c016414668cf (patch)
tree2ef85e558e80bec0c78bd10056729277cbdf3fe0 /common
parent05a1c0cce07b1439959fb8a1d7c554596e37ebb6 (diff)
downloadpentadactyl-bd4ad25901b051e9c253b1f9d069c016414668cf.tar.gz
Disable completion.shellCommand.
Diffstat (limited to 'common')
-rw-r--r--common/content/commandline.js3
-rw-r--r--common/content/io.js10
-rw-r--r--common/locale/en-US/styling.xml2
3 files changed, 9 insertions, 6 deletions
diff --git a/common/content/commandline.js b/common/content/commandline.js
index 26a07f38..f9a90b2e 100644
--- a/common/content/commandline.js
+++ b/common/content/commandline.js
@@ -500,6 +500,9 @@ const CommandLine = Module("commandline", {
this._history.save();
this.resetCompletions(); // cancels any asynchronous completion still going on, must be before we set completions = null
this.hideCompletions();
+ this._completions = null;
+ this._history = null;
+ this._statusTimer.tell();
if (!this._keepCommand || this._silent || this._quiet) {
modes.delay(function () {
diff --git a/common/content/io.js b/common/content/io.js
index 3cfba864..4cc0c74b 100644
--- a/common/content/io.js
+++ b/common/content/io.js
@@ -636,7 +636,8 @@ lookup:
}, {
argCount: "?", // TODO: "1" - probably not worth supporting weird Vim edge cases. The dream is dead. --djk
bang: true,
- completer: function (context) completion.shellCommand(context),
+ // This is abominably slow.
+ // completer: function (context) completion.shellCommand(context),
literal: 0
});
},
@@ -744,10 +745,9 @@ lookup:
for (let [, dirName] in Iterator(dirNames)) {
let dir = io.File(dirName);
- if (dir.exists() && dir.isDirectory()) {
- commands.push([[file.leafName, dir.path] for (file in dir.iterDirectory())
- if (file.isFile() && file.isExecutable())]);
- }
+ if (dir.exists() && dir.isDirectory())
+ commands.push([[file.leafName, dir.path] for (file in iter(dir.directoryEntries))
+ if (file.isFile() && file.isExecutable())]);
}
return array.flatten(commands);
diff --git a/common/locale/en-US/styling.xml b/common/locale/en-US/styling.xml
index b19d35f8..5f7f05e0 100644
--- a/common/locale/en-US/styling.xml
+++ b/common/locale/en-US/styling.xml
@@ -95,8 +95,8 @@
<dt>Object</dt> <dd>A JavaScript Object</dd>
<dt>Preview</dt> <dd>The completion preview displayed in the &tag.command-line;</dd>
<dt>Question</dt> <dd>A prompt for a decision</dd>
- <dt>Search</dt> <dd>Highlighted search results in a web page</dd>
<dt>StatusLine</dt> <dd>The status bar</dd>
+ <dt>StatusLineNormal</dt> <dd>The status bar for an ordinary web page</dd>
<dt>StatusLineBroken</dt> <dd>The status bar for a broken web page</dd>
<dt>StatusLineExtended</dt><dd>    The status bar for a secure web page with an Extended Validation (EV) certificate</dd>
<dt>StatusLineSecure</dt> <dd>The status bar for a secure web page</dd>