4

Add A Custom Search Engine for Vimium

 1 year ago
source link: https://jdhao.github.io/2023/04/18/vimium_custom_search_engine/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Add A Custom Search Engine for Vimium

2023-04-18276 words 2 mins read 17 times read

Vimium is a Chrome extension that lets us to browse the internet with our fingers, rather than using the mouse. In this post, I will going to share how to add a custom search engine for Vimium.

There are some background knowledge we need to be clear.

Vomnibar

If you have installed Vimium, in a normal web page, you can press o, a long bar will appear and wait for your input. Here we can type keywords to search through history and bookmarks, or just search through the default Google search engine. This long text bar is called Vomnibar by Vimium.

Add custom search engine

For example, suppose that we want to add google translate as our custom search engine. First, open the Vimium options, in the lower part, there is “Custom search engine” part. In the text box, add the following new line:

gt: https://translate.google.com/?sl=de&tl=en&text=%s&op=translate Gtranslate

In this example, the alias for Google translate is gt. In the URL part, we need to replace the actual search query with %s (the query text will be URL-encoded, to avoid URL-encode, use %S instead). Gtranslate is custom name for this new search engine, and can be empty.

Then click Save changes in the bottom right. The new search engine should be added with success.

Use the new search Engine

Open a normal webpage, press o1, we should see the Vomnibar. Then press gt + <Space>, we are now prompted to enter the query text. After entering the text, use return key to search.

References


  1. This will open a new search result in the same tab, to open the result in new tab, press capital O instead. ↩︎

Author jdhao

LastMod 2023-04-18

License CC BY-NC-ND 4.0

Next


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK