From 669043da71e53298932eecd8978b9b1dca2a065c Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 19 Dec 2008 12:33:22 -0500 Subject: [PATCH] Add completion for empty 'defsearch' --- vimperator/content/bookmarks.js | 6 +++++- vimperator/locale/en-US/options.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 8acac9f7..afb276e4 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -258,7 +258,11 @@ function Bookmarks() //{{{ "Set the default search engine", "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 }); diff --git a/vimperator/locale/en-US/options.txt b/vimperator/locale/en-US/options.txt index 2d017a69..22cdd8c7 100644 --- a/vimperator/locale/en-US/options.txt +++ b/vimperator/locale/en-US/options.txt @@ -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]. 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]]. ____