diff options
| -rw-r--r-- | background_page.html | 1 | ||||
| -rw-r--r-- | background_scripts/commands.coffee | 4 | ||||
| -rw-r--r-- | content_scripts/vomnibar.coffee | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html index c6d4206b..8215b389 100644 --- a/background_page.html +++ b/background_page.html @@ -64,6 +64,7 @@ completionSources.bookmarks, completionSources.history, completionSources.domains]), + bookmarks: new MultiCompleter([completionSources.bookmarks]), tabs: new MultiCompleter([completionSources.tabs]) }; diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index f012890c..1180ef3f 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -92,6 +92,7 @@ Commands = "enterInsertMode", "focusInput", "LinkHints.activateMode", "LinkHints.activateModeToOpenInNewTab", "LinkHints.activateModeWithQueue", "Vomnibar.activate", "Vomnibar.activateWithCurrentUrl", "Vomnibar.activateTabSelection", + "Vomnibar.activateBookmarks", "goPrevious", "goNext", "nextFrame"] findCommands: ["enterFindMode", "performFind", "performBackwardsFind"] historyNavigation: @@ -168,6 +169,8 @@ defaultKeyMappings = "T": "Vomnibar.activateTabSelection" + "b": "Vomnibar.activateBookmarks" + "gf": "nextFrame" @@ -231,6 +234,7 @@ commandDescriptions = "Vomnibar.activate": ["Open URL, bookmark, or history entry"] "Vomnibar.activateWithCurrentUrl": ["Open URL, bookmark, history entry, starting with the current URL"] "Vomnibar.activateTabSelection": ["Search through your open tabs"] + "Vomnibar.activateBookmarks": ["Open a bookmark"] 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 df9d89b9..30615433 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -24,6 +24,7 @@ Vomnibar = activate: -> @activateWithCompleter("omni", 100) activateWithCurrentUrl: -> @activateWithCompleter("omni", 100, window.location.toString()) activateTabSelection: -> @activateWithCompleter("tabs", 0) + activateBookmarks: -> @activateWithCompleter("bookmarks", 0) getUI: -> @vomnibarUI @@ -210,4 +211,4 @@ extend BackgroundCompleter, switchToTab: (tabId) -> chrome.extension.sendRequest({ handler: "selectSpecificTab", id: tabId }) root = exports ? window -root.Vomnibar = Vomnibar
\ No newline at end of file +root.Vomnibar = Vomnibar |
