1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 11:38:00 +01:00

Revert "Allow empty defsearch."

This reverts commit 3cab7c16a0ef5e39f9aeeb8ea1ed9602a6a152f4.
This commit is contained in:
Kris Maglione
2008-12-19 12:29:13 -05:00
parent 993ba60ee7
commit aaab59aab6
3 changed files with 1 additions and 11 deletions

View File

@@ -1645,7 +1645,7 @@ function Completion() //{{{
let engines = bookmarks.getSearchEngines();
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 };
if (!space || noSuggest)

View File

@@ -589,13 +589,6 @@ function Bookmarks() //{{{
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
// format of returned array:
// [keyword, helptext, url]

View File

@@ -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]. Therefore, you need to add a keyword or search engine
"youtube" first.
If 'defsearch' is empty, then Firefox will always attempt to open the
raw [[arg]].
____