vimium-c
vimium-c copied to clipboard
Can we add a key-map which make the query of some website ?
Something like below:
map hg openUrl url="https://context.reverso.net/%C3%BCbersetzung/deutsch-englisch/%s"
it is not working since it couldn't catch the selected word.
map hg autoOpen keyword="reverso"
do so, if only in Custom search engines
there's:
reverso: https://context.reverso.net/%C3%BCbersetzung/deutsch-englisch/%s
Hi, It works autoopen only for normal web page text but doesn't work when I am writing something in some text field and try to activate autoOpen shortcut. Is there a solution to activate mapkey in text input field ?
Please see https://github.com/gdh1995/vimium-c/wiki/Trigger-commands-in-an-input-box#trigger-commands-of-vimium-c . You may use map <f1> autoCopy
or map <c-s-c:i> autoCopy
.
Is it possible to make a mapkey both that work with insert mode and without insert mode because I dont want to set the key separately for each mode for the same website query. I gave a example of my current mapkey below;
map <c-r> autoOpen selected keyword="r"
map <c-s-r:i> autoOpen selected keyword="r"
Instead of that I would like to the make same map key for both mode.
If you mean Ctrl Down
, J Down
, J Up
, K Down
, K Up
and then Ctrl Up
, then its name is <c-j><c-k>
.
To make a mapkey both that work with insert mode and without insert mode, here's an example:
map <c-s-r> autoOpen selected keyword="r"
run <c-s-r:i> <c-s-r>
map <c-g>r autoOpen selected keyword="r"
run <c-g:i>r <c-g>r
map <c-g>d autoOpen selected copied keyword="d"
run <c-g:i>d <c-g>d
map <c-g>t autoOpen selected copied keyword="t"
run <c-g:i>t <c-g>t
Thanks you for your reply, I would like to assign two consecutive key as above so that they don't interfere with my others mapkeys. Is it possible to make with run command. It seems that they don't work as it is now.
What's the version of your Vimium C? What's your browser?
The logic about key mapping is changing in recent 2 minor versions, so I need a detailed version info to decide how to write mappings.
Chrome Version 104.0.5112.101 (Official Build) (arm64)
Vimuim Version 1.99.2
Sorry because of some bugs in v1.99.0-v1.99.2, currently it's impossible to map a sequence of 2 key names in Insert mode.
I'll fix it, and in v1.99.3 such a mapping should work:
mapKey <c-g:i> <v-open>
mapKey <c-g:n> <v-open>
run <v-o2> autoOpen#selected&copied&keyword=$s mask
run <v-open>r o2 r
run <v-open>d o2 d
run <v-open>t o2 t
It gave me these 3 Errors below when I copied and tried to save your mapping.
Command "o2" doesn't exist!. Command "o2" doesn't exist!. Command "o2" doesn't exist!.
Oh I forgot to update my clipboard.
updated.
It doesn't work unfortunately in insert mode.
because of some bugs in v1.99.0-v1.99.2, currently it's impossible to map a sequence of 2 key names in Insert mode.
I'll fix it, and in v1.99.3 such a mapping should work:
Okay, Thanks for your amazing effort to maintain this beautiful extension. I appreciated if you let me know when you update.
Hello, v1.99.3 has been available on Chrome Web Store and Firefox Add-Ons.
Thanks it is working!
When we are are continue to write sth in text box (insert mode), can we grap the last word and give the query of intended website when I trigger these map-key if nothing already selected ?
For example I want to be sure what is the article of selected word or the meaning of the word from a dictionary, when I trigger the duden query map-key. For this, I want to automatically select the last word that I wrote and bring me the this site so that I don't need necessarily to select with mouse last word and than trigger to map-key.
I add here a gif from another app that I am using. What the app doing is that when I rigger assigned key it automatically search in pop-up dictionary the last word I selected. Basically two job is done with one key.Last Word is selected and pup-up dictionary is opened.
Vimium C won't show a popup of search result, because this feature is far away from what Vimium C focuses on. And the need of searching in a dictionary should have been satisfied by those professional dictionary extension.
If you still want, I can find a way to "select the last word" and then open it under a given search engine in a new tab.
If you still want, I can find a way to "select the last word" and then open it under a given search engine in a new tab.
This is what I am looking for. The other pub-up is just the example of "select the last word" feature. Thanks I'll be appreciated if you can implemented.
This is what I am looking for. The other pub-up is just the example of "select the last word" feature.
Thanks I'll be appreciated it if you can implemented.
Have you implemented it?
Not now. It may arrive at Vimium C v2.01 in a few more months.