1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 04:44:10 +01:00

major mode rewrite, still not fully complete, but usable

This commit is contained in:
Martin Stubenschrott
2007-09-14 03:35:12 +00:00
parent c6b77df92e
commit 353bfa2a74
13 changed files with 1055 additions and 378 deletions

View File

@@ -128,6 +128,9 @@ function Search() //{{{
this.highlight(lastsearch);
}
var leader = lastsearch_backwards ? "?" : "/";
vimperator.commandline.echo(leader + lastsearch);
var up = reverse ? !lastsearch_backwards : lastsearch_backwards;
var result = getBrowser().fastFind.findAgain(up, false);
@@ -180,18 +183,15 @@ function Search() //{{{
lastsearch_backwards = backwards;
lastsearch = command;
vimperator.setMode(vimperator.modes.NORMAL);
vimperator.focusContent();
vimperator.modes.set(vimperator.modes.NORMAL, null, true);
}
// Called when the search is cancelled - for example if someone presses
// escape while typing a search
this.searchCanceled = function()
{
//removeMode(MODE_SEARCH);
vimperator.setMode(vimperator.modes.NORMAL);
vimperator.modes.reset();
this.clear();
vimperator.focusContent();
}
this.highlight = function(word)