1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-09 13:35:47 +01:00

Add finder map aliases.

This commit is contained in:
Doug Kearns
2011-07-21 11:54:04 +10:00
parent a6cab89965
commit b4936fa481
2 changed files with 12 additions and 12 deletions

View File

@@ -225,29 +225,29 @@ var RangeFinder = Module("rangefinder", {
var myModes = config.browserModes.concat([modes.CARET]);
mappings.add(myModes,
["/"], "Find a pattern starting at the current caret position",
["/", "<find-forward>"], "Find a pattern starting at the current caret position",
function () { rangefinder.openPrompt(modes.FIND_FORWARD); });
mappings.add(myModes,
["?"], "Find a pattern backward of the current caret position",
["?", "<find-backward>"], "Find a pattern backward of the current caret position",
function () { rangefinder.openPrompt(modes.FIND_BACKWARD); });
mappings.add(myModes,
["n"], "Find next",
["n", "<find-next>"], "Find next",
function () { rangefinder.findAgain(false); });
mappings.add(myModes,
["N"], "Find previous",
["N", "<find-previous>"], "Find previous",
function () { rangefinder.findAgain(true); });
mappings.add(myModes.concat([modes.CARET, modes.TEXT_EDIT]), ["*"],
mappings.add(myModes.concat([modes.CARET, modes.TEXT_EDIT]), ["*", "<find-word-forward>"],
"Find word under cursor",
function () {
rangefinder.find(Buffer.currentWord(buffer.focusedFrame, true), false);
rangefinder.findAgain();
});
mappings.add(myModes.concat([modes.CARET, modes.TEXT_EDIT]), ["#"],
mappings.add(myModes.concat([modes.CARET, modes.TEXT_EDIT]), ["#", "<find-word-backward>"],
"Find word under cursor backwards",
function () {
rangefinder.find(Buffer.currentWord(buffer.focusedFrame, true), true);