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:
2
NEWS
2
NEWS
@@ -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
|
||||||
|
|||||||
@@ -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); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user