1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 03:05:46 +01:00

* and # support

This commit is contained in:
Martin Stubenschrott
2007-09-06 17:39:21 +00:00
parent d9888288f3
commit 16bb541c98
6 changed files with 68 additions and 6 deletions

View File

@@ -1377,6 +1377,41 @@ function Mappings() //{{{
{ }
));
// BIG FIXME: unify event handling to allow keys to be valid in more than one mode!!
addDefaultMap(new Map(vimperator.modes.CARET, ["*"],
function(count)
{
vimperator.search.searchSubmitted(vimperator.getCurrentWord(), false);
vimperator.search.findAgain();
},
{ }
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["*"],
function(count)
{
vimperator.search.searchSubmitted(vimperator.getCurrentWord(), false);
vimperator.search.findAgain();
},
{ }
));
addDefaultMap(new Map(vimperator.modes.CARET, ["#"],
function(count)
{
vimperator.search.searchSubmitted(vimperator.getCurrentWord(), true);
vimperator.search.findAgain();
},
{ }
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["#"],
function(count)
{
vimperator.search.searchSubmitted(vimperator.getCurrentWord(), true);
vimperator.search.findAgain();
},
{ }
));
} //}}}
// vim: set fdm=marker sw=4 ts=4 et: