1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 23:02:27 +01:00

Disable completion.shellCommand.

This commit is contained in:
Kris Maglione
2010-12-20 13:04:46 -05:00
parent 05a1c0cce0
commit bd4ad25901
3 changed files with 9 additions and 6 deletions

View File

@@ -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 () {

View File

@@ -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);

View File

@@ -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>