1
0
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:
Doug Kearns
2008-09-10 18:57:15 +00:00
parent 13e504c0a4
commit a6a9561bdd
2 changed files with 12 additions and 1 deletions

View File

@@ -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); }
});