diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | background_scripts/main.coffee | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |
