From a6a9561bdd3388b53ebc504bb47fed2e5477d0f6 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Sep 2008 18:57:15 +0000 Subject: [PATCH] add commandline completion to 'cpt' --- NEWS | 2 +- content/ui.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 23cb21e6..6197d06b 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,7 @@ * version 2.0 (probably) * IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and VimperatorLeave respectively - * add commandline completion to 'defsearch' + * add commandline completion to 'cpt' and 'defsearch' * add 'helpfile' option * add 'wildignore' option * add :finish command diff --git a/content/ui.js b/content/ui.js index 64ca1946..bb6be905 100644 --- a/content/ui.js +++ b/content/ui.js @@ -312,6 +312,17 @@ liberator.CommandLine = function () //{{{ "Items which are completed at the :[tab]open prompt", "charlist", "sfbh", { + completer: function (filter) + { + return [ + ["s", "Search engines and keyword URLs"], + ["f", "Local files"], + ["b", "Bookmarks"], + ["h", "History"], + ["l", "Firefox location bar entries (bookmarks and history sorted in an intelligent way)"], + ["S", "Suggest engines"] + ]; + }, validator: function (value) { return !/[^sfbhSl]/.test(value); } });