diff options
| author | Devin Weaver | 2014-03-01 18:39:02 -0500 | 
|---|---|---|
| committer | Devin Weaver | 2014-03-01 18:39:02 -0500 | 
| commit | f86995b7466d4b7c91a8e7a3ceba1c35a2e796e9 (patch) | |
| tree | 21bbb58e428e7b06d49977de89b5f1c011f05e48 /background_scripts | |
| parent | a8f9658f755e96176e42078e3c9743c565097a27 (diff) | |
| download | vimium-f86995b7466d4b7c91a8e7a3ceba1c35a2e796e9.tar.bz2 | |
Add Vomnibar.activateEditUrl commands
Often times when I'm working on sites I want to add a query string or
modify the port number. The go up one level or root of the URL commands
are nice but they don't alow you to add or remove specifics on the
current URL.
This adds two commands that act exactly like the normal onmibar open but
populates the bar with the current URL.
I picked `ge` as the default and `gE` as the default for the same in a
new tab.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/commands.coffee | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index ce159c71..22153eda 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -95,6 +95,7 @@ Commands =         "LinkHints.activateMode", "LinkHints.activateModeToOpenInNewTab", "LinkHints.activateModeWithQueue",         "Vomnibar.activate", "Vomnibar.activateInNewTab", "Vomnibar.activateTabSelection",         "Vomnibar.activateBookmarks", "Vomnibar.activateBookmarksInNewTab", +       "Vomnibar.activateEditUrl", "Vomnibar.activateEditUrlInNewTab",         "goPrevious", "goNext", "nextFrame", "Marks.activateCreateMode", "Marks.activateGotoMode"]      findCommands: ["enterFindMode", "performFind", "performBackwardsFind"]      historyNavigation: @@ -110,6 +111,7 @@ Commands =    advancedCommands: [      "scrollToLeft", "scrollToRight", "moveTabToNewWindow",      "goUp", "goToRoot", "focusInput", "LinkHints.activateModeWithQueue", +    "Vomnibar.activateEditUrl", "Vomnibar.activateEditUrlInNewTab",      "LinkHints.activateModeToOpenIncognito", "goNext", "goPrevious", "Marks.activateCreateMode",      "Marks.activateGotoMode"] @@ -178,6 +180,9 @@ defaultKeyMappings =    "b": "Vomnibar.activateBookmarks"    "B": "Vomnibar.activateBookmarksInNewTab" +  "ge": "Vomnibar.activateEditUrl" +  "gE": "Vomnibar.activateEditUrlInNewTab" +    "gf": "nextFrame"    "m": "Marks.activateCreateMode" @@ -251,6 +256,8 @@ commandDescriptions =    "Vomnibar.activateTabSelection": ["Search through your open tabs"]    "Vomnibar.activateBookmarks": ["Open a bookmark"]    "Vomnibar.activateBookmarksInNewTab": ["Open a bookmark in a new tab"] +  "Vomnibar.activateEditUrl": ["Edit the current URL"] +  "Vomnibar.activateEditUrlInNewTab": ["Edit the current URL and open in a new tab"]    nextFrame: ["Cycle forward to the next frame on the page", { background: true, passCountToFunction: true }] | 
