diff options
Diffstat (limited to 'background_scripts/commands.coffee')
| -rw-r--r-- | background_scripts/commands.coffee | 20 | 
1 files changed, 14 insertions, 6 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index b85afbdb..5614e576 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -21,6 +21,7 @@ Commands =        description: description        isBackgroundCommand: options.background        passCountToFunction: options.passCountToFunction +      noRepeat: options.noRepeat    mapKeyToCommand: (key, command) ->      unless @availableCommands[command] @@ -31,6 +32,7 @@ Commands =        command: command        isBackgroundCommand: @availableCommands[command].isBackgroundCommand        passCountToFunction: @availableCommands[command].passCountToFunction +      noRepeat: @availableCommands[command].noRepeat    unmapKey: (key) -> delete @keyToCommandRegistry[key] @@ -88,7 +90,7 @@ Commands =         "scrollToTop", "scrollToBottom", "scrollToLeft", "scrollToRight", "scrollPageDown",         "scrollPageUp", "scrollFullPageUp", "scrollFullPageDown",         "reload", "toggleViewSource", "copyCurrentUrl", "LinkHints.activateModeToCopyLinkUrl", -       "openCopiedUrlInCurrentTab", "openCopiedUrlInNewTab", "goUp", +       "openCopiedUrlInCurrentTab", "openCopiedUrlInNewTab", "goUp", "goToRoot",         "enterInsertMode", "focusInput",         "LinkHints.activateMode", "LinkHints.activateModeToOpenInNewTab", "LinkHints.activateModeWithQueue",         "Vomnibar.activate", "Vomnibar.activateInNewTab", "Vomnibar.activateTabSelection", @@ -98,7 +100,7 @@ Commands =      historyNavigation:        ["goBack", "goForward"]      tabManipulation: -      ["nextTab", "previousTab", "firstTab", "lastTab", "createTab", "removeTab", "restoreTab"] +      ["nextTab", "previousTab", "firstTab", "lastTab", "createTab", "duplicateTab", "removeTab", "restoreTab"]      misc:        ["showHelp"] @@ -106,9 +108,9 @@ Commands =    # a focused, high-signal set of commands to the new and casual user. Only those truly hungry for more power    # from Vimium will uncover these gems.    advancedCommands: [ -    "scrollToLeft", "scrollToRight", -    "goUp", "focusInput", "LinkHints.activateModeWithQueue", -    "LinkHints.activateModeToOpenIncognitoWindow", "goPrevious", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"] +    "scrollToLeft", "scrollToRight", "moveTabToNewWindow", +    "goUp", "goToRoot", "focusInput", "LinkHints.activateModeWithQueue", +    "LinkHints.activateModeToOpenIncognitoWindow", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"]  defaultKeyMappings =    "?": "showHelp" @@ -133,6 +135,7 @@ defaultKeyMappings =    "H": "goBack"    "L": "goForward"    "gu": "goUp" +  "gU": "goToRoot"    "gi": "focusInput" @@ -160,7 +163,9 @@ defaultKeyMappings =    "g0": "firstTab"    "g$": "lastTab" +  "W": "moveTabToNewWindow"    "t": "createTab" +  "yt": "duplicateTab"    "x": "removeTab"    "X": "restoreTab" @@ -227,6 +232,7 @@ commandDescriptions =    # Navigating the URL hierarchy    goUp: ["Go up the URL hierarchy", { passCountToFunction: true }] +  goToRoot: ["Go to root of current URL hierarchy", { passCountToFunction: true }]    # Manipulating tabs    nextTab: ["Go one tab right", { background: true }] @@ -234,8 +240,10 @@ commandDescriptions =    firstTab: ["Go to the first tab", { background: true }]    lastTab: ["Go to the last tab", { background: true }]    createTab: ["Create new tab", { background: true }] -  removeTab: ["Close current tab", { background: true }] +  duplicateTab: ["Duplicate current tab", { background: true }] +  removeTab: ["Close current tab", { background: true, noRepeat: true }]    restoreTab: ["Restore closed tab", { background: true }] +  moveTabToNewWindow: ["Move tab to new window", { background: true }]    "Vomnibar.activate": ["Open URL, bookmark, or history entry"]    "Vomnibar.activateInNewTab": ["Open URL, bookmark, history entry, in a new tab"]  | 
