diff options
Diffstat (limited to 'background_scripts/commands.coffee')
| -rw-r--r-- | background_scripts/commands.coffee | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 69c37ac4..d7c332f9 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -93,7 +93,7 @@ Commands = "LinkHints.activateMode", "LinkHints.activateModeToOpenInNewTab", "LinkHints.activateModeWithQueue", "Vomnibar.activate", "Vomnibar.activateInNewTab", "Vomnibar.activateTabSelection", "Vomnibar.activateBookmarks", "Vomnibar.activateBookmarksInNewTab", - "goPrevious", "goNext", "nextFrame"] + "goPrevious", "goNext", "nextFrame", "Marks.activateCreateMode", "Marks.activateGotoMode"] findCommands: ["enterFindMode", "performFind", "performBackwardsFind"] historyNavigation: ["goBack", "goForward"] @@ -108,7 +108,7 @@ Commands = advancedCommands: [ "scrollToLeft", "scrollToRight", "goUp", "focusInput", "LinkHints.activateModeWithQueue", - "goPrevious", "goNext"] + "goPrevious", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"] defaultKeyMappings = "?": "showHelp" @@ -174,6 +174,9 @@ defaultKeyMappings = "gf": "nextFrame" + "m": "Marks.activateCreateMode" + "`": "Marks.activateGotoMode" + # This is a mapping of: commandIdentifier => [description, options]. commandDescriptions = @@ -240,6 +243,9 @@ commandDescriptions = nextFrame: ["Cycle forward to the next frame on the page", { background: true, passCountToFunction: true }] + "Marks.activateCreateMode": ["Create a new mark"] + "Marks.activateGotoMode": ["Go to a mark"] + Commands.init() root = exports ? window |
