diff options
| author | ilya | 2012-07-06 23:48:17 -0700 | 
|---|---|---|
| committer | ilya | 2012-07-06 23:48:17 -0700 | 
| commit | 680ca8fbd34a51f854302537c3b09ffd60edbe93 (patch) | |
| tree | e376e924c083ea5e2048311165cd8f748399a8e8 | |
| parent | ed21d9b1abe42c1556f27390476302a1393dedb8 (diff) | |
| download | vimium-680ca8fbd34a51f854302537c3b09ffd60edbe93.tar.bz2 | |
Bookmarks mode in Vomnibar
| -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 | 
