aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-12-11 15:43:56 +0000
committerStephen Blott2016-12-11 15:43:56 +0000
commit849829d41469e113fc81cbe1b65d32b511e59905 (patch)
treef5102b630ac302d412644480fe73385d03d28970
parentf490b85757656c2276dcb9faa6237ca8231f8046 (diff)
downloadvimium-849829d41469e113fc81cbe1b65d32b511e59905.tar.bz2
Documentation for updates.
-rw-r--r--README.md1
-rw-r--r--background_scripts/main.coffee3
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 41bb4338..7fcafdfe 100644
--- a/README.md
+++ b/README.md
@@ -162,6 +162,7 @@ Release Notes
Changes since the previous release (not yet in the Chrome Store version)
- Features:
+ - The `createTab` command can now open specific URLs (e.g, `map X createTab http://www.bbc.com/news`).
- You can now map multi-modifier keys, for example: `<c-a-X>`.
- Vimium can now do simple key mapping in some modes; see
[here](https://github.com/philc/vimium/wiki/Tips-and-Tricks#key-mapping).
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 283826de..72f87a7e 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -145,6 +145,9 @@ mkRepeatCommand = (command) -> (request) ->
# These are commands which are bound to keystrokes which must be handled by the background page. They are
# mapped in commands.coffee.
BackgroundCommands =
+ # Create a new tab. Also, with:
+ # map X createTab http://www.bbc.com/news
+ # create a new tab with the given URL.
createTab: mkRepeatCommand (request, callback) ->
request.urls ?=
if request.url