mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 05:15:46 +01:00
Add completion for empty 'defsearch'
This commit is contained in:
@@ -258,7 +258,11 @@ function Bookmarks() //{{{
|
|||||||
"Set the default search engine",
|
"Set the default search engine",
|
||||||
"string", "google",
|
"string", "google",
|
||||||
{
|
{
|
||||||
completer: function completer(context) completion.search(context, true),
|
completer: function completer(context)
|
||||||
|
{
|
||||||
|
completion.search(context, true)
|
||||||
|
context.completions = [["", "Don't perform searches by default"]].concat(context.completions);
|
||||||
|
},
|
||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -247,6 +247,9 @@ This means, it you set 'defsearch' to "youtube", then [c]:open arnold
|
|||||||
schwarzenegger[c] will be exactly the same as [c]:open youtube arnold
|
schwarzenegger[c] will be exactly the same as [c]:open youtube arnold
|
||||||
schwarzenegger[c]. Therefore, you need to add a keyword or search engine
|
schwarzenegger[c]. Therefore, you need to add a keyword or search engine
|
||||||
"youtube" first.
|
"youtube" first.
|
||||||
|
|
||||||
|
If 'defsearch' is empty, then Firefox will always attempt to open the
|
||||||
|
raw [[arg]].
|
||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user