How to toggle NerdTree panel #747
-
How can I toggle open and closed the NerdTree file panel? I have tried several different mappings in .ideavimrc but none of them work 100%. The key combination I want to use is Leader followed by the letter e. This key combination should both open and close the panel. Here is my latest attempt
If the panel is closed and I press Leader e, the panel opens as expected. However, when I press Leader e again, to close the panel, the e character is captured by the file-tree and a search for the letter 'e' is started. How can I achieve my objective? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Unfortunately, this isn't currently possible, because IdeaVim is an editor extension, so IdeaVim mappings can only work in the context of an editor. Once the Project View has focus, you're no longer in an editor context, and standard mappings won't work. You can use normal IDE shortcuts, such as |
Beta Was this translation helpful? Give feedback.
Unfortunately, this isn't currently possible, because IdeaVim is an editor extension, so IdeaVim mappings can only work in the context of an editor. Once the Project View has focus, you're no longer in an editor context, and standard mappings won't work.
You can use normal IDE shortcuts, such as
Escape
to move the focus back to an editor, orShift+Escape
to close the current tool window. You can also use the Project View shortcut such asAlt/Cmd+0
to toggle it. There might also be a NERDTree shortcut, but I'm not familiar with it and would have to check.