aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorJez Ng2012-10-26 13:27:37 -0400
committerJez Ng2012-10-29 18:28:46 -0400
commitaeb455a577c0a20684f357ff737203b5cb419cd4 (patch)
tree184db85bb1569360854c4c2814634f1c580efe9b /background_scripts/commands.coffee
parent76622cd99cf671531cfa21c5d6243f3e4e185116 (diff)
downloadvimium-aeb455a577c0a20684f357ff737203b5cb419cd4.tar.bz2
Implement marks.
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee10
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