diff options
| author | Your Name | 2010-08-27 08:59:56 +0800 | 
|---|---|---|
| committer | Ilya | 2010-08-30 09:04:18 +0800 | 
| commit | 9b39f14445920eff56525b86bc99328851a3f8ae (patch) | |
| tree | e71202efeb5b93da4260201a4c4ad8fb0304fefa /commands.js | |
| parent | fd6174c1e533baf4177549dc6b6f1e3871415abf (diff) | |
| download | vimium-9b39f14445920eff56525b86bc99328851a3f8ae.tar.bz2 | |
-190 added scrollToLeft + scrollToRight commands in order to scroll to the end of the page horizontally -- remove stylistic whitespaces
Diffstat (limited to 'commands.js')
| -rw-r--r-- | commands.js | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/commands.js b/commands.js index 0adbf3b9..a09d07dc 100644 --- a/commands.js +++ b/commands.js @@ -80,8 +80,11 @@ function clearKeyMappingsAndSetDefaults() {    mapKeyToCommand('k', 'scrollUp');    mapKeyToCommand('h', 'scrollLeft');    mapKeyToCommand('l', 'scrollRight'); +    mapKeyToCommand('gg', 'scrollToTop');    mapKeyToCommand('G', 'scrollToBottom'); +  mapKeyToCommand('ga', 'scrollToLeft'); +  mapKeyToCommand('gd', 'scrollToRight');    mapKeyToCommand('<c-e>', 'scrollDown');    mapKeyToCommand('<c-y>', 'scrollUp');    mapKeyToCommand('<c-d>', 'scrollPageDown'); @@ -127,6 +130,8 @@ addCommand('scrollLeft',          'Scroll left');  addCommand('scrollRight',         'Scroll right');  addCommand('scrollToTop',         'Scroll to the top of the page');  addCommand('scrollToBottom',      'Scroll to the bottom of the page'); +addCommand('scrollToLeft',        'Scroll to the left of the page'); +addCommand('scrollToRight',       'Scroll to the right of the page');  addCommand('scrollPageDown',      'Scroll a page down');  addCommand('scrollPageUp',        'Scroll a page up');  addCommand('scrollFullPageDown',  'Scroll a full page down'); @@ -167,7 +172,7 @@ addCommand('restoreTab',          "Restore closed tab", true);  var commandGroups = {    pageNavigation:      ["scrollDown", "scrollUp", "scrollLeft", "scrollRight", -     "scrollToTop", "scrollToBottom", "scrollPageDown", "scrollPageUp", "scrollFullPageDown", +     "scrollToTop", "scrollToBottom", "scrollToLeft", "scrollToRight", "scrollPageDown", "scrollPageUp", "scrollFullPageDown",       "reload", "toggleViewSource", "zoomIn", "zoomOut", "copyCurrentUrl", "goUp",       "enterInsertMode", "activateLinkHintsMode", "activateLinkHintsModeToOpenInNewTab",       "enterFindMode", "performFind", "performBackwardsFind"],  | 
