Using Vim motions to navigate Intention Actions menu in IntelliJ
Answered
Hi,
I’m using the IdeaVim plugin in IntelliJ and have mapped Leader+a to show Intention Actions:
nnoremap <Leader>a :action ShowIntentionActions<CR>
This successfully opens the menu, but I cannot use Vim motions (j/k) to navigate the list of intentions. Currently, I can only use the arrow keys.
Is there a way to enable Vim-style navigation (j/k) inside the Intention Actions popup, or to remap these motions specifically for this popup?
I’m looking for a solution that keeps the IdeaVim experience consistent across all popups.
Thanks in advance!
Please sign in to leave a comment.
Hi Dilipgona Dev
Unfortunately, this is a known limitation of IdeaVim. The Intention Actions popup (and many other IDE popups/dialogs) don't support Vim motions like
j/kfor navigation by default. These popups are native IntelliJ UI components that operate independently of the IdeaVim plugin's keybindings.There're some workarounds but these don't work consistently for enabling
j/knavigation specifically in the Intention Actions popup while using IdeaVim. This is because:Also, this is a request feature in the IdeaVim community. If you'd like to see this improved, I'd recommend:
Can i able to move the arrow up and down without using the arrow keys.
Hello Dilipgona Dev
As a workaround to navigate popups without arrow keys, you can:
Ctrl+N(Down) andCtrl+P(Up)Add custom mappings in
.ideavimrc:You ca also check the YouTrack ticket IJPL-55292 and see if it helps.
However, there's no perfect solution for making
j/kwork in all IDE popups.I hope this helps.