tool window navigation for vim in IDEA

Answered

I am on IntelliJ IDEA Ultimate and I have my vim setup (through vimidea plugin). As you know in vim we move with h j k l in place of the arrow keys. I like it, but I would like to extend it further to include it in my tool window navigation.

So I went to the keymap hoping to find a relevant action to assign it a shortcut ⌘j for down ⌘k for up (I put  to preserve the search functionality that IDEA offer in the tool window). But unfortunately, I wasn't able to find the relevant action. I believe this question might not be related to the vimidea plugin, I just want to find the relevant action for navigating up and down in tool windows, so I can assign my own shortcuts.

What is the appropriate action for navigating up and down in tool window?

7 comments
Comment actions Permalink

Hello,

It should be possible in 2019 version: https://youtrack.jetbrains.com/issue/IDEA-123918

 

1
Comment actions Permalink

I have the same question. Is it at all possible to replace arrows with hjkl ?

0
Comment actions Permalink

Yes, the IdeaVim plugin does that by default.

0
Comment actions Permalink

My mistake, my question was not enough precisely. I was thinking about if it is possible to set delay time (for example 500 ms) and after that use 'j' 'k' to navigate this sub-menu. Or some other solution.

0
Comment actions Permalink

There is no such function. Moreover, it is not expected for a letter to become an arrow in the editor without a verbal command to do so. 

By the way, you can use letters from any part of the word in order to see the needed function on the first place faster: 

0
Comment actions Permalink

Thx for your response. I wonder if it is possible to define ctrl+j to works like arrow in this case ?

0
Comment actions Permalink

Yes. Just map the needed shortcuts for up/down/left/right actions: 

https://i.imgur.com/cbNkkTn.png

0

Please sign in to leave a comment.