From f86995b7466d4b7c91a8e7a3ceba1c35a2e796e9 Mon Sep 17 00:00:00 2001 From: Devin Weaver Date: Sat, 1 Mar 2014 18:39:02 -0500 Subject: 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. --- background_scripts/commands.coffee | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'background_scripts/commands.coffee') 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 }] -- cgit v1.2.3