mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-17 09:43:32 +01:00
Add :completions command.
This commit is contained in:
@@ -1447,6 +1447,15 @@ var Commands = Module("commands", {
|
|||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
|
commands.add(["comp[letions]"],
|
||||||
|
"List the completion results for a given command substring",
|
||||||
|
function (args) { completion.listCompleter("ex", args[0]); },
|
||||||
|
{
|
||||||
|
argCount: "1",
|
||||||
|
completer: function (context, args) completion.ex(context),
|
||||||
|
literal: 0
|
||||||
|
});
|
||||||
|
|
||||||
commands.add(["delc[ommand]"],
|
commands.add(["delc[ommand]"],
|
||||||
"Delete the specified user-defined command",
|
"Delete the specified user-defined command",
|
||||||
function (args) {
|
function (args) {
|
||||||
|
|||||||
@@ -14,6 +14,17 @@
|
|||||||
|
|
||||||
<h2 tag="various">Various commands</h2>
|
<h2 tag="various">Various commands</h2>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags>:comp :completions</tags>
|
||||||
|
<spec>:comp<oa>letions</oa> <a>ex-command</a></spec>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
List the completion results for a given command substring.
|
||||||
|
</p>
|
||||||
|
<example><ex>:completions :set! <str delim="">browser.tabs.</str></ex></example>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>:contexts</tags>
|
<tags>:contexts</tags>
|
||||||
<spec>:contexts <a>ex-command</a></spec>
|
<spec>:contexts <a>ex-command</a></spec>
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
- Added -arg flag to :map. [b6]
|
- Added -arg flag to :map. [b6]
|
||||||
- :extensions has been replaced with a more powerful :addons.
|
- :extensions has been replaced with a more powerful :addons.
|
||||||
- Added -literal flag to :command. [b6]
|
- Added -literal flag to :command. [b6]
|
||||||
|
- Added :completions command. [b6]
|
||||||
- Added :cookies command. [b3]
|
- Added :cookies command. [b3]
|
||||||
- :extadd now supports remote URLs as well as local files on Firefox 4. [b2]
|
- :extadd now supports remote URLs as well as local files on Firefox 4. [b2]
|
||||||
- Added :if/:elseif/:else/:endif conditionals. [b3]
|
- Added :if/:elseif/:else/:endif conditionals. [b3]
|
||||||
|
|||||||
Reference in New Issue
Block a user