Normally, I can select opened file in Intellij using this shortcut Alt+Shift+1+1. But I want to remapping shortcut with Ideavim. Any idea about that?
Asked
Active
Viewed 414 times
1 Answers
2
You can create a mapping to <Action>(SelectInProjectView)
. E.g.: map <leader>s <Action>(SelectInProjectView)

Feedforward
- 4,521
- 4
- 22
- 34
-
it works but Intellij show confirm dialog: `:action SelectInProjectView`, then I need an extra keystroke to complete this action. – Anh Ho Phi Duc Dec 02 '20 at 10:44
-
I need extra help from you. Thanks. – Anh Ho Phi Duc Dec 02 '20 at 10:51
-
This is surprising, there should be no additional dialogs. Could you please show a screenshot? Here or using https://youtrack.jetbrains.com/issues/VIM?u=1 – Feedforward Dec 02 '20 at 10:52
-
[Screenshort](https://s3-ap-southeast-1.amazonaws.com/logbasex.github.io/ideavim.png) – Anh Ho Phi Duc Dec 02 '20 at 11:07
-
`nnoremap ,o :action SelectInProjectView` I use this binding to map action above. – Anh Ho Phi Duc Dec 02 '20 at 11:09
-
1Oh, I see. You should put `
` at the end of mapping (enter key). You can alternatively use new mapping syntax as in my example (required the latest version of the plugin 0.61) – Feedforward Dec 02 '20 at 11:11 -
It works like a charm.Thank you so much :D – Anh Ho Phi Duc Dec 02 '20 at 14:14