How to move between open editor tabs and tool windows by direction using the same shortcut like Vim

Answered

I want to move between editor tabs and tool windows in IntelliJ. Vim lets you do this by holding ctrl hjkl to move between panes in Neovim distros.

 

For example say I have the following 3 pane set up in IntelliJ where I am located at Editor tab 2.

project file explorer | Editor tab 1 | Editor tab 2 *

If I tap <C-h> I want to focus on editor tab 1, and then if I hit it again I want to focus on project file explorer.

 

I can achieve my first need by mapping <C-h> to <C-w>h via IdeaVim. But this won't solve problem 2. IntelliJ has Focus next window and Focus previous window which could work, but it doesn't let me know what direction the next tool window is located.

 

I tried solving this using Hammerspoon but not all windows are shown if I am focused on a certain window. 

 

So how would I implement what I want? Or is there a way to just focus the next tool window open on the left / right / up / down

0
1 comment

Hello,

Seems it's not possible right now. Feel free to create request on YouTrack: https://youtrack.jetbrains.com/issues/VIM

0

Please sign in to leave a comment.