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

add commandline completion to 'cpt'

This commit is contained in:
Doug Kearns
2008-09-10 18:57:15 +00:00
parent 13e504c0a4
commit a6a9561bdd
2 changed files with 12 additions and 1 deletions

2
NEWS
View File

@@ -3,7 +3,7 @@
* version 2.0 (probably) * version 2.0 (probably)
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and * IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
VimperatorLeave respectively VimperatorLeave respectively
* add commandline completion to 'defsearch' * add commandline completion to 'cpt' and 'defsearch'
* add 'helpfile' option * add 'helpfile' option
* add 'wildignore' option * add 'wildignore' option
* add :finish command * add :finish command

View File

@@ -312,6 +312,17 @@ liberator.CommandLine = function () //{{{
"Items which are completed at the :[tab]open prompt", "Items which are completed at the :[tab]open prompt",
"charlist", "sfbh", "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); } validator: function (value) { return !/[^sfbhSl]/.test(value); }
}); });