philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.16k stars 2.48k forks source link

How can I use duckduckgo bangs with vimium vomnibar? #4141

Open TsuiMinghung opened 2 years ago

TsuiMinghung commented 2 years ago

It's really useful to get search results with duckduckgo bangs.But I can't use that through vimium's vomnibar.Is it possible to combine?

gdh1995 commented 2 years ago

Um, I once got a similar idea - recognize query words from a current tab's URL, and search it in another search engine.

I've implemented it in my customized version of Vimium, named Vimium C (https://github.com/gdh1995/vimium-c), and its new command of searchInAnother just does this:

If you have added both a source search engine and a target search engine into Custom search engines on Vimium C - let's say they're google and bing - then on a Google search result tab, map xxx searchInAnother keyword="bing" will accept xxx as a keyboard shortcut to switch the current tab to Bing's search result.

philj0st commented 2 years ago

hhmm I get this out of the box because i set the default search engine to https://duckduckgo.com/?q=. Now when I open Vomnibar with o and type zebra !gi i get the usual duckduckgo google image search result.