mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 10:15:45 +01:00
Disable completion.shellCommand.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user