diff options
| author | Tim Morgan | 2010-09-03 22:38:45 -0500 |
|---|---|---|
| committer | Tim Morgan | 2010-09-03 22:46:20 -0500 |
| commit | f146e5908bd79dcab4d4afa219af79d4a892b099 (patch) | |
| tree | a00c7189c2352f3a7666fde996215ed48b419808 /commands.js | |
| parent | f9f5208f4d88873ee55a4c54062920981ad22eb8 (diff) | |
| download | vimium-f146e5908bd79dcab4d4afa219af79d4a892b099.tar.bz2 | |
Command to go to next frame.
I remapped toggleViewSource to 'gs' and set 'gf' to nextFrame.
Sorry this is such a huge commit. This is really the simplest way I can
find to allow the extension to track all available frames as well as the
currently-focused frame.
If Chrome would allow access to window.frames[i], then this could
probably be simpler.
Diffstat (limited to 'commands.js')
| -rw-r--r-- | commands.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/commands.js b/commands.js index 477e5cd3..e49574e3 100644 --- a/commands.js +++ b/commands.js @@ -92,7 +92,7 @@ function clearKeyMappingsAndSetDefaults() { mapKeyToCommand('<c-f>', 'scrollFullPageDown'); mapKeyToCommand('<c-b>', 'scrollFullPageUp'); mapKeyToCommand('r', 'reload'); - mapKeyToCommand('gf', 'toggleViewSource'); + mapKeyToCommand('gs', 'toggleViewSource'); mapKeyToCommand('i', 'enterInsertMode'); @@ -120,6 +120,8 @@ function clearKeyMappingsAndSetDefaults() { mapKeyToCommand('t', 'createTab'); mapKeyToCommand('d', 'removeTab'); mapKeyToCommand('u', 'restoreTab'); + + mapKeyToCommand('gf', 'nextFrame'); } // Navigating the current page: @@ -166,6 +168,8 @@ addCommand('createTab', 'Create new tab', true); addCommand('removeTab', 'Close current tab', true); addCommand('restoreTab', "Restore closed tab", true); +addCommand('nextFrame', "Cycle forward to the next frame on the page", true); + // An ordered listing of all available commands, grouped by type. This is the order they will // be shown in the help page. @@ -175,7 +179,7 @@ var commandGroups = { "scrollToTop", "scrollToBottom", "scrollToLeft", "scrollToRight", "scrollPageDown", "scrollPageUp", "scrollFullPageDown", "reload", "toggleViewSource", "zoomIn", "zoomOut", "copyCurrentUrl", "goUp", "enterInsertMode", "activateLinkHintsMode", "activateLinkHintsModeToOpenInNewTab", - "enterFindMode", "performFind", "performBackwardsFind"], + "enterFindMode", "performFind", "performBackwardsFind", "nextFrame"], historyNavigation: ["goBack", "goForward"], tabManipulation: |
