philc / vimium

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

Omnibar search engine shortcuts (feature request) #3825

Open avidseeker opened 3 years ago

avidseeker commented 3 years ago

It would be convenient to access a search engine using its shortcut. For example, if Wikipedia is added as a search engine with shortcut wp, then typing wp only in the omnibar redirects to en.wikipedia.org.

This is similar to Firefox bookmarks shortcuts, but I use chromium based browsers.

gdh1995 commented 3 years ago

if Wikipedia is added as a search engine with shortcut wp

Where did you mean it's added ? To chrome://settings/searchEngines or Vimium's "custom search engines" ? Vimium can not access engines defined in chrome://settings/searchEngines, which is a limit of Chrome.

avidseeker commented 3 years ago

Of course Vimium's custom search engines.

gdh1995 commented 3 years ago

I have a customized version of Vimium, named Vimium C, and it extends the syntax and usage of search engine rules. The doc is https://github.com/gdh1995/vimium-c/wiki/Search-engine-rules , and for this issue, g: https://www.google.com/search?q=%s blank=https://www.google.com/ Google should work.

txtyash commented 3 years ago

You could put the 'vimium.search' file available at https://github.com/zim0369/dotfiles in your custom search engines.

aheinous commented 3 years ago

I'm not familiar with Firefox, but Chrome has a similar feature. For example you can press Ctrl+lto focus the address bar then type yt <tab> to search YouTube.

This assumes you have added YouTube as a search engine. You can do this in settings -> search engine -> manage search engines