aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-02-09 15:55:49 +0000
committerStephen Blott2016-02-09 15:55:52 +0000
commit60d33d20026cdcdd0c4ecef20410d38341c86633 (patch)
treecd9c40694ad4fadd039e143685e33be49b45610d /background_scripts/commands.coffee
parent4ada22e85dcd061fa806a5fe72a9dc3f1cfe0442 (diff)
downloadvimium-60d33d20026cdcdd0c4ecef20410d38341c86633.tar.bz2
BgUtils; implement visitPreviousTab.
Implements visitPreviousTab (as discussed in #1955).
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index d42fd9fb..9c958461 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -125,6 +125,7 @@ Commands =
tabManipulation:
["nextTab",
"previousTab",
+ "visitPreviousTab",
"firstTab",
"lastTab",
"createTab",
@@ -215,6 +216,7 @@ defaultKeyMappings =
"J": "previousTab"
"gt": "nextTab"
"gT": "previousTab"
+ "^": "visitPreviousTab"
"<<": "moveTabLeft"
">>": "moveTabRight"
"g0": "firstTab"
@@ -306,6 +308,7 @@ commandDescriptions =
# Manipulating tabs
nextTab: ["Go one tab right", { background: true, passCountToFunction: true }]
previousTab: ["Go one tab left", { background: true, passCountToFunction: true }]
+ visitPreviousTab: ["Go to previously-visited tab", { background: true, passCountToFunction: true }]
firstTab: ["Go to the first tab", { background: true, passCountToFunction: true }]
lastTab: ["Go to the last tab", { background: true, passCountToFunction: true }]