mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 13:28:11 +01:00
Revert "Allow empty defsearch."
This reverts commit 3cab7c16a0ef5e39f9aeeb8ea1ed9602a6a152f4.
This commit is contained in:
@@ -1645,7 +1645,7 @@ function Completion() //{{{
|
|||||||
let engines = bookmarks.getSearchEngines();
|
let engines = bookmarks.getSearchEngines();
|
||||||
|
|
||||||
context.title = ["Search Keywords"];
|
context.title = ["Search Keywords"];
|
||||||
context.completions = [ bookmarks.makeKeyword("", "No default search engine", null, "") ].concat( keywords.concat(engines) );
|
context.completions = keywords.concat(engines);
|
||||||
context.keys = { text: 0, description: 1, icon: 2 };
|
context.keys = { text: 0, description: 1, icon: 2 };
|
||||||
|
|
||||||
if (!space || noSuggest)
|
if (!space || noSuggest)
|
||||||
|
|||||||
@@ -589,13 +589,6 @@ function Bookmarks() //{{{
|
|||||||
return process(resp);
|
return process(resp);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Allows for creation of anonymous keyword (e.g., for empty
|
|
||||||
// defsearch's)
|
|
||||||
makeKeyword: function makeKeyword(keyword, title, icon, url)
|
|
||||||
{
|
|
||||||
return new Keyword( keyword, title, icon, url );
|
|
||||||
},
|
|
||||||
|
|
||||||
// TODO: add filtering
|
// TODO: add filtering
|
||||||
// format of returned array:
|
// format of returned array:
|
||||||
// [keyword, helptext, url]
|
// [keyword, helptext, url]
|
||||||
|
|||||||
@@ -247,9 +247,6 @@ 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