aboutsummaryrefslogtreecommitdiffstats
path: root/commands.js
diff options
context:
space:
mode:
authorR.T. Lechow2011-01-04 19:02:53 -0500
committerR.T. Lechow2011-01-04 19:57:29 -0500
commit5f944bc99c7cb25412d4f7a51b946b27a14ca77d (patch)
treefff356a668877a2b2fe6b0473af2711a0f26a590 /commands.js
parentfdc320339e8cbdf978fe2259f247eec2e182a65f (diff)
downloadvimium-5f944bc99c7cb25412d4f7a51b946b27a14ca77d.tar.bz2
Commands for following 'previous' and 'next' links.
Diffstat (limited to 'commands.js')
-rw-r--r--commands.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands.js b/commands.js
index 3b9203dc..7ee25520 100644
--- a/commands.js
+++ b/commands.js
@@ -118,6 +118,9 @@ function clearKeyMappingsAndSetDefaults() {
mapKeyToCommand('n', 'performFind');
mapKeyToCommand('N', 'performBackwardsFind');
+ mapKeyToCommand('[[', 'goPrevious');
+ mapKeyToCommand(']]', 'goNext');
+
mapKeyToCommand('yy', 'copyCurrentUrl');
mapKeyToCommand('K', 'nextTab');
@@ -165,6 +168,9 @@ addCommand('enterFindMode', 'Enter find mode');
addCommand('performFind', 'Cycle forward to the next find match');
addCommand('performBackwardsFind', 'Cycle backward to the previous find match');
+addCommand('goPrevious', 'Follow the link labeled previous or <');
+addCommand('goNext', 'Follow the link labeled next or >');
+
// Navigating your history:
addCommand('goBack', 'Go back in history');
addCommand('goForward', 'Go forward in history');
@@ -192,6 +198,7 @@ var commandGroups = {
"reload", "toggleViewSource", "zoomIn", "zoomOut", "copyCurrentUrl", "goUp",
"enterInsertMode", "focusInput",
"activateLinkHintsMode", "activateLinkHintsModeToOpenInNewTab", "activateLinkHintsModeWithQueue",
+ "goPrevious", "goNext",
"enterFindMode", "performFind", "performBackwardsFind", "nextFrame"],
historyNavigation:
["goBack", "goForward"],