aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/commands.coffee7
-rw-r--r--content_scripts/vomnibar.coffee2
2 files changed, 9 insertions, 0 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 825160d8..3a85c6fd 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -94,6 +94,7 @@ Commands =
"LinkHints.activateModeToOpenInNewForegroundTab", "LinkHints.activateModeWithQueue", "Vomnibar.activate",
"Vomnibar.activateInNewTab", "Vomnibar.activateTabSelection", "Vomnibar.activateBookmarks",
"Vomnibar.activateBookmarksInNewTab", "goPrevious", "goNext", "nextFrame", "Marks.activateCreateMode",
+ "Vomnibar.activateEditUrl", "Vomnibar.activateEditUrlInNewTab",
"Marks.activateGotoMode"]
findCommands: ["enterFindMode", "performFind", "performBackwardsFind"]
historyNavigation:
@@ -111,6 +112,7 @@ Commands =
advancedCommands: [
"scrollToLeft", "scrollToRight", "moveTabToNewWindow",
"goUp", "goToRoot", "focusInput", "LinkHints.activateModeWithQueue", "LinkHints.activateModeToDownloadLink",
+ "Vomnibar.activateEditUrl", "Vomnibar.activateEditUrlInNewTab",
"LinkHints.activateModeToOpenIncognito", "goNext", "goPrevious", "Marks.activateCreateMode",
"Marks.activateGotoMode", "moveTabLeft", "moveTabRight",
"closeTabsOnLeft","closeTabsOnRight", "closeOtherTabs"]
@@ -186,6 +188,9 @@ defaultKeyMappings =
"b": "Vomnibar.activateBookmarks"
"B": "Vomnibar.activateBookmarksInNewTab"
+ "ge": "Vomnibar.activateEditUrl"
+ "gE": "Vomnibar.activateEditUrlInNewTab"
+
"gf": "nextFrame"
"m": "Marks.activateCreateMode"
@@ -270,6 +275,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 }]
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index 9c13cd6d..22b9ed64 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -28,6 +28,8 @@ Vomnibar =
activateTabSelection: -> @activateWithCompleter("tabs", 0, null, true)
activateBookmarks: -> @activateWithCompleter("bookmarks", 0, null, true)
activateBookmarksInNewTab: -> @activateWithCompleter("bookmarks", 0, null, true, true)
+ activateEditUrl: -> @activateWithCompleter("omni", 100, window.location.href)
+ activateEditUrlInNewTab: -> @activateWithCompleter("omni", 100, window.location.href, false, true)
getUI: -> @vomnibarUI