mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:42:27 +01:00
add commandline completion to 'cpt'
This commit is contained in:
@@ -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); }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user