1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:08:02 +01:00

add 'incsearch' option

This commit is contained in:
Doug Kearns
2007-09-03 19:43:42 +00:00
parent 6d33284a76
commit 127dbd42cc
2 changed files with 10 additions and 1 deletions

View File

@@ -111,7 +111,10 @@ function Search() //{{{
// Called when the user types a key in the search dialog. Triggers a find attempt // Called when the user types a key in the search dialog. Triggers a find attempt
this.searchKeyPressed = function(command) this.searchKeyPressed = function(command)
{ {
// TODO: check for 'incsearch' if (!vimperator.options['incsearch'])
return;
// FIXME: isn't the global already set here? -- djk
var backward = vimperator.hasMode(vimperator.modes.SEARCH_BACKWARD); var backward = vimperator.hasMode(vimperator.modes.SEARCH_BACKWARD);
this.find(command, backward); this.find(command, backward);
} }

View File

@@ -432,6 +432,12 @@ function Options() //{{{
default_value: false default_value: false
} }
)); ));
addOption(new Option(["incsearch", "is"], "boolean",
{
short_help: "Show where the search pattern matches as it is typed",
default_value: false
}
));
addOption(new Option(["maxhints", "mh"], "number", addOption(new Option(["maxhints", "mh"], "number",
{ {
short_help: "Maximum number of simultaneously shown hints", short_help: "Maximum number of simultaneously shown hints",