philc / vimium

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

Feature Request: Travel search query suggestions with Ctrl+j and Ctrl+k. #3700

Open hemanth-kotagiri opened 4 years ago

hemanth-kotagiri commented 4 years ago

I have tried a lot searching for any default keybinding provided by Vimium to travel the search query suggestions.

For example, while in Google searching for something will produce a few suggestions. I want to travel through them by using any keybinding and that which makes sense in this case is to use ctrl + j to travel down, and ctrl + k to travel up. If there already exists a feature like this, please let me know!

Thanks!

pluma9 commented 4 years ago

You can use n for jumping forward and shift + n for jumping backward.

hemanth-kotagiri commented 4 years ago

@pluma9 What you're talking about is the search and find next. I am aware of that and it is pretty cool which works just like Vim. I am not talking about that in this issue, though. My request is regarding navigation/travel through the search suggestions of, say Google.

Shubhamsm commented 4 years ago

I think ctrl-j and ctrl-k is already there in vimium search bar untitled

hemanth-kotagiri commented 4 years ago

@Shubhamsm, thanks for your reply. Yes, I know about it. But what I am talking about is using the same ctrl+j and ctrl+k in the bar that is behind the Vimium search bar which is google's search bar in the gif that you provided. Can you do the same there? I tried, but it doesn't happen there.

gdh1995 commented 4 years ago

Well, this function will not be so generic if implemented in Vimium.

Google shows the suggestions by itself, and it requires native keyboard events to travel over suggestion items, so Vimium can only do what this issue said by simulating arrow key events - currently there's no similar features in Vimium. Maybe you can use extensions like Tampermonkey (or GreaseMonkey on Firefox) and write your JavaScript code to do so.

akrivka commented 4 years ago

@gdh1995 Could simulating arrow key events be theoretically implemented in the future? Or is there some limitation with the Chrome Extenstion API?

What about the Escape? (I've been trying to map it "away" from doing what escape does, and instead switching between normal and insert mode within a text field while retaining focus).

snsnsjsn commented 3 years ago

I use ahk to map the capslock +j or K to solve ,but for you inquiry the vimium have use the ctrl+j to solve your needing