aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-09-17 06:43:16 +0100
committerStephen Blott2015-09-17 06:43:16 +0100
commit9ab3f42533c0ec30decac8fd84c9decc690e3afd (patch)
treec4e1da05cec67d49a130a76e58cc8e2ac51ced11 /background_scripts/commands.coffee
parent00f7fcdb2dedcaef34c498c862c403b28fdf9c88 (diff)
downloadvimium-9ab3f42533c0ec30decac8fd84c9decc690e3afd.tar.bz2
Add <count> prefix for g0 and g$.
`2g0` takes you to the second tab. `2g$` takes you to the second last tab. This gives us `gt`/`gT` for relative tab selection and `g0`/`g$` for absolute tab selection. `<count>` previously had no special meaning for `g0` and `g$`, and it's not clear it could have any other meaning than that implemented here. Fixes #1298 (kind of).
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 64ec36be..a0b17ebc 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -309,8 +309,8 @@ commandDescriptions =
# Manipulating tabs
nextTab: ["Go one tab right", { background: true, passCountToFunction: true }]
previousTab: ["Go one tab left", { background: true, passCountToFunction: true }]
- firstTab: ["Go to the first tab", { background: true }]
- lastTab: ["Go to the last tab", { background: true }]
+ firstTab: ["Go to the first tab", { background: true, passCountToFunction: true }]
+ lastTab: ["Go to the last tab", { background: true, passCountToFunction: true }]
createTab: ["Create new tab", { background: true, repeatLimit: 20 }]
duplicateTab: ["Duplicate current tab", { background: true, repeatLimit: 20 }]