From 5f944bc99c7cb25412d4f7a51b946b27a14ca77d Mon Sep 17 00:00:00 2001 From: R.T. Lechow Date: Tue, 4 Jan 2011 19:02:53 -0500 Subject: Commands for following 'previous' and 'next' links. --- commands.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'commands.js') 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"], -- cgit v1.2.3