aboutsummaryrefslogtreecommitdiffstats
path: root/commands.js
diff options
context:
space:
mode:
authorNiklas Baumstark2012-01-21 00:23:59 +0100
committerNiklas Baumstark2012-04-10 23:54:35 +0200
commit6f589fedcc826b125884e3a5884c9791802afb7f (patch)
treeeb117a99558b5456b0367157a09a12f887db8630 /commands.js
parent269042a28230bb35406d1447fac8955ca1a5c0b3 (diff)
downloadvimium-6f589fedcc826b125884e3a5884c9791802afb7f.tar.bz2
add fuzzy mode
Diffstat (limited to 'commands.js')
-rw-r--r--commands.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/commands.js b/commands.js
index c961a901..1c19e26a 100644
--- a/commands.js
+++ b/commands.js
@@ -144,7 +144,10 @@ function clearKeyMappingsAndSetDefaults() {
"b": "activateBookmarkFindMode",
"B": "activateBookmarkFindModeToOpenInNewTab",
- "gf": "nextFrame"
+ "o": "fuzzyMode.activate",
+ "O": "fuzzyMode.activateNewTab",
+
+ "gf": "nextFrame",
};
for (var key in defaultKeyMappings)
@@ -211,6 +214,9 @@ var commandDescriptions = {
activateBookmarkFindMode: ["Open a bookmark in the current tab"],
activateBookmarkFindModeToOpenInNewTab: ["Open a bookmark in a new tab"],
+ 'fuzzyMode.activate': ["Open URL, bookmark, history entry or a custom search (fuzzy)"],
+ 'fuzzyMode.activateNewTab': ["Open URL, bookmark, history entry or a custom search (fuzzy, new tab)"],
+
nextFrame: ["Cycle forward to the next frame on the page", { background: true, passCountToFunction: true }]
};
@@ -230,6 +236,7 @@ var commandGroups = {
"enterInsertMode", "focusInput",
"linkHints.activateMode", "linkHints.activateModeToOpenInNewTab", "linkHints.activateModeWithQueue",
"activateBookmarkFindMode", "activateBookmarkFindModeToOpenInNewTab",
+ "fuzzyMode.activate", "fuzzyMode.activateNewTab",
"goPrevious", "goNext", "nextFrame"],
findCommands: ["enterFindMode", "performFind", "performBackwardsFind"],
historyNavigation: