From 346cf2531a86b075074ecde7f3f25c6c24e14f0c Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 3 Feb 2011 05:34:50 -0500 Subject: [PATCH] Add :completions command. --- common/content/commands.js | 9 +++++++++ common/locale/en-US/various.xml | 11 +++++++++++ pentadactyl/NEWS | 1 + 3 files changed, 21 insertions(+) diff --git a/common/content/commands.js b/common/content/commands.js index 4f0be074..095f9e4b 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -1447,6 +1447,15 @@ var Commands = Module("commands", { }, { 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]"], "Delete the specified user-defined command", function (args) { diff --git a/common/locale/en-US/various.xml b/common/locale/en-US/various.xml index 46814699..b68b72b6 100644 --- a/common/locale/en-US/various.xml +++ b/common/locale/en-US/various.xml @@ -14,6 +14,17 @@

Various commands

+ + :comp :completions + :completions ex-command + +

+ List the completion results for a given command substring. +

+ :completions :set! browser.tabs. +
+
+ :contexts :contexts ex-command diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index 1120da54..c813a3af 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -81,6 +81,7 @@ - Added -arg flag to :map. [b6] - :extensions has been replaced with a more powerful :addons. - Added -literal flag to :command. [b6] + - Added :completions command. [b6] - Added :cookies command. [b3] - :extadd now supports remote URLs as well as local files on Firefox 4. [b2] - Added :if/:elseif/:else/:endif conditionals. [b3]