When I selected some text and want to quickly search this text with specific custom search engine just with pressing s key.
Is it possible to do this?
Configure your custom search engine in the advanced section of Vimium options.
Then p/P. (p
is to paste the current string in clipboard to do a navigation if is an URL, otherwise do a search using the configured search engine. Uppercase P
is to paste in a new tab)
Similar with selecting text via Visual Mode. Instead of y to copy the selection, p/P to directly search it using the configured search engine.
@innaterebel thanks for your reply!
This two step method seems not perfectly to do "one single key searching".
I have a habit from opera of searching selected text with different single key with appropriate search engine. Such as I select "github" highlighted ,and then I can press g search it with google or press w search with wikipedia.
Maybe it not a general demand 锛歅
My custom Vimium allows this: it has a special command "autoOpen" which reads selected text and open or search it. The project is https://github.com/gdh1995/vimium-c , and Chrome WebStore link is https://chrome.google.com/webstore/detail/vimium-c/hfjbmagddngcpeloejdejnfgbamkjaeg/
For example, my command mappings are:
map聽Cd聽autoOpen聽keyword="dict"
map聽Cg聽autoOpen聽keyword="google"
map聽Cb聽autoOpen聽keyword="baidu"
# "dict" is the name of Bing Dict search engine (declared in "Custom search engines")
# "baidu" is another search engine mainly for Chinese users
My custom Vimium allows this: it has a special command "autoOpen" which reads selected text and open or search it. The project is https://github.com/gdh1995/vimium-plus , and Chrome WebStore link is https://chrome.google.com/webstore/detail/vimium%2B%2B/hfjbmagddngcpeloejdejnfgbamkjaeg/
For example, my command mappings are:
map聽Cd聽autoOpen聽keyword="dict" map聽Cg聽autoOpen聽keyword="google" map聽Cb聽autoOpen聽keyword="baidu" # "dict" is the name of Bing Dict search engine (declared in "Custom search engines") # "baidu" is another search engine mainly for Chinese users
wonderful !!
I have found this func so long, now I set up "s" key for selected text search in Google:
map s autoOpen keyword="google"
Unfortunately, few people know about your project
btw, feel great setting z and c keys as tabs changer-key, x and X as close and re-open keys by default with
vimium-c
map z previousTab
map c nextTab
Most helpful comment
wonderful !!
I have found this func so long, now I set up "s" key for selected text search in Google:
map s autoOpen keyword="google"
Unfortunately, few people know about your project