diff options
| author | Phil Crosby | 2011-01-30 00:55:05 -0800 |
|---|---|---|
| committer | Phil Crosby | 2011-01-30 00:55:05 -0800 |
| commit | efb1af02cceda258da04a4266258f079bc019d3a (patch) | |
| tree | 5bd58fa667e17463bb987ba0c83e8e3188a56b47 /commands.js | |
| parent | c12d6dff42885baf9437e9e28a7841941e57ed83 (diff) | |
| download | vimium-efb1af02cceda258da04a4266258f079bc019d3a.tar.bz2 | |
Changing quote style so it's not inconsistent within the same file
Diffstat (limited to 'commands.js')
| -rw-r--r-- | commands.js | 194 |
1 files changed, 97 insertions, 97 deletions
diff --git a/commands.js b/commands.js index 7f30df97..cc774bff 100644 --- a/commands.js +++ b/commands.js @@ -81,113 +81,113 @@ function parseCustomKeyMappings(customKeyMappings) { function clearKeyMappingsAndSetDefaults() { keyToCommandRegistry = {}; - mapKeyToCommand('?', 'showHelp'); - mapKeyToCommand('j', 'scrollDown'); - mapKeyToCommand('k', 'scrollUp'); - mapKeyToCommand('h', 'scrollLeft'); - mapKeyToCommand('l', 'scrollRight'); - mapKeyToCommand('gg', 'scrollToTop'); - mapKeyToCommand('G', 'scrollToBottom'); - mapKeyToCommand('zH', 'scrollToLeft'); - mapKeyToCommand('zL', 'scrollToRight'); - mapKeyToCommand('<c-e>', 'scrollDown'); - mapKeyToCommand('<c-y>', 'scrollUp'); - mapKeyToCommand('<c-d>', 'scrollPageDown'); - mapKeyToCommand('<c-u>', 'scrollPageUp'); - mapKeyToCommand('<c-f>', 'scrollFullPageDown'); - mapKeyToCommand('<c-b>', 'scrollFullPageUp'); - mapKeyToCommand('r', 'reload'); - mapKeyToCommand('gs', 'toggleViewSource'); - - mapKeyToCommand('i', 'enterInsertMode'); - - mapKeyToCommand('H', 'goBack'); - mapKeyToCommand('L', 'goForward'); - mapKeyToCommand('gu', 'goUp'); - - mapKeyToCommand('zi', 'zoomIn'); - mapKeyToCommand('zo', 'zoomOut'); - mapKeyToCommand('z0', 'zoomReset'); - - mapKeyToCommand('gi', 'focusInput'); - - mapKeyToCommand('f', 'activateLinkHintsMode'); - mapKeyToCommand('F', 'activateLinkHintsModeToOpenInNewTab'); - mapKeyToCommand('<a-f>', 'activateLinkHintsModeWithQueue'); - - mapKeyToCommand('/', 'enterFindMode'); - mapKeyToCommand('n', 'performFind'); - mapKeyToCommand('N', 'performBackwardsFind'); - - mapKeyToCommand('[[', 'goPrevious'); - mapKeyToCommand(']]', 'goNext'); - - mapKeyToCommand('yy', 'copyCurrentUrl'); - - mapKeyToCommand('K', 'nextTab'); - mapKeyToCommand('J', 'previousTab'); - mapKeyToCommand('gt', 'nextTab'); - mapKeyToCommand('gT', 'previousTab'); - - mapKeyToCommand('t', 'createTab'); - mapKeyToCommand('d', 'removeTab'); - mapKeyToCommand('u', 'restoreTab'); - - mapKeyToCommand('gf', 'nextFrame'); + mapKeyToCommand("?", "showHelp"); + mapKeyToCommand("j", "scrollDown"); + mapKeyToCommand("k", "scrollUp"); + mapKeyToCommand("h", "scrollLeft"); + mapKeyToCommand("l", "scrollRight"); + mapKeyToCommand("gg", "scrollToTop"); + mapKeyToCommand("G", "scrollToBottom"); + mapKeyToCommand("zH", "scrollToLeft"); + mapKeyToCommand("zL", "scrollToRight"); + mapKeyToCommand("<c-e>", "scrollDown"); + mapKeyToCommand("<c-y>", "scrollUp"); + mapKeyToCommand("<c-d>", "scrollPageDown"); + mapKeyToCommand("<c-u>", "scrollPageUp"); + mapKeyToCommand("<c-f>", "scrollFullPageDown"); + mapKeyToCommand("<c-b>", "scrollFullPageUp"); + mapKeyToCommand("r", "reload"); + mapKeyToCommand("gs", "toggleViewSource"); + + mapKeyToCommand("i", "enterInsertMode"); + + mapKeyToCommand("H", "goBack"); + mapKeyToCommand("L", "goForward"); + mapKeyToCommand("gu", "goUp"); + + mapKeyToCommand("zi", "zoomIn"); + mapKeyToCommand("zo", "zoomOut"); + mapKeyToCommand("z0", "zoomReset"); + + mapKeyToCommand("gi", "focusInput"); + + mapKeyToCommand("f", "activateLinkHintsMode"); + mapKeyToCommand("F", "activateLinkHintsModeToOpenInNewTab"); + mapKeyToCommand("<a-f>", "activateLinkHintsModeWithQueue"); + + mapKeyToCommand("/", "enterFindMode"); + mapKeyToCommand("n", "performFind"); + mapKeyToCommand("N", "performBackwardsFind"); + + mapKeyToCommand("[[", "goPrevious"); + mapKeyToCommand("]]", "goNext"); + + mapKeyToCommand("yy", "copyCurrentUrl"); + + mapKeyToCommand("K", "nextTab"); + mapKeyToCommand("J", "previousTab"); + mapKeyToCommand("gt", "nextTab"); + mapKeyToCommand("gT", "previousTab"); + + mapKeyToCommand("t", "createTab"); + mapKeyToCommand("d", "removeTab"); + mapKeyToCommand("u", "restoreTab"); + + mapKeyToCommand("gf", "nextFrame"); } // Navigating the current page: -addCommand('showHelp', 'Show help', true); -addCommand('scrollDown', 'Scroll down'); -addCommand('scrollUp', 'Scroll up'); -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'); -addCommand('scrollFullPageUp', 'Scroll a full page up'); - -addCommand('reload', 'Reload the page'); -addCommand('toggleViewSource', 'View page source'); -addCommand('zoomIn', 'Zoom in'); -addCommand('zoomOut', 'Zoom out'); -addCommand('zoomReset', 'Reset zoom to default value'); -addCommand('copyCurrentUrl', 'Copy the current URL to the clipboard'); - -addCommand('enterInsertMode', 'Enter insert mode'); - -addCommand('focusInput', 'Focus the first (or n-th) text box on the page', false, true); - -addCommand('activateLinkHintsMode', 'Enter link hints mode to open links in current tab'); -addCommand('activateLinkHintsModeToOpenInNewTab', 'Enter link hints mode to open links in new tab'); -addCommand('activateLinkHintsModeWithQueue', 'Enter link hints mode to open multiple links in a new tab'); - -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 >'); +addCommand("showHelp", "Show help", true); +addCommand("scrollDown", "Scroll down"); +addCommand("scrollUp", "Scroll up"); +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"); +addCommand("scrollFullPageUp", "Scroll a full page up"); + +addCommand("reload", "Reload the page"); +addCommand("toggleViewSource", "View page source"); +addCommand("zoomIn", "Zoom in"); +addCommand("zoomOut", "Zoom out"); +addCommand("zoomReset", "Reset zoom to default value"); +addCommand("copyCurrentUrl", "Copy the current URL to the clipboard"); + +addCommand("enterInsertMode", "Enter insert mode"); + +addCommand("focusInput", "Focus the first (or n-th) text box on the page", false, true); + +addCommand("activateLinkHintsMode", "Enter link hints mode to open links in current tab"); +addCommand("activateLinkHintsModeToOpenInNewTab", "Enter link hints mode to open links in new tab"); +addCommand("activateLinkHintsModeWithQueue", "Enter link hints mode to open multiple links in a new tab"); + +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'); +addCommand("goBack", "Go back in history"); +addCommand("goForward", "Go forward in history"); // Navigating the URL hierarchy -addCommand('goUp', 'Go up the URL hierarchy', false, true); +addCommand("goUp", "Go up the URL hierarchy", false, true); // Manipulating tabs: -addCommand('nextTab', 'Go one tab right', true); -addCommand('previousTab', 'Go one tab left', true); -addCommand('createTab', 'Create new tab', true); -addCommand('removeTab', 'Close current tab', true); -addCommand('restoreTab', "Restore closed tab", true); +addCommand("nextTab", "Go one tab right", true); +addCommand("previousTab", "Go one tab left", true); +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); +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 |
