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. --- content_scripts/vomnibar.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content_scripts') diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index 6782ab28..b0850f8e 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 -- cgit v1.2.3