mirror of
https://github.com/chylex/IntelliJ-Keyboard-Master.git
synced 2025-04-22 08:15:43 +02:00
Add vim-style bindings with selection
This commit is contained in:
parent
e6ab49cb16
commit
83bb3f6a83
src/main/kotlin/com/chylex/intellij/keyboardmaster/feature/vimNavigation/components
@ -28,9 +28,13 @@ internal object VimListNavigation {
|
||||
),
|
||||
KeyStroke.getKeyStroke('G') to IdeaAction("List-selectLastRow"),
|
||||
KeyStroke.getKeyStroke('h') to IdeaAction("List-selectPreviousColumn"),
|
||||
KeyStroke.getKeyStroke('H') to IdeaAction("List-selectPreviousColumnExtendSelection"),
|
||||
KeyStroke.getKeyStroke('j') to IdeaAction("List-selectNextRow"),
|
||||
KeyStroke.getKeyStroke('J') to IdeaAction("List-selectNextRowExtendSelection"),
|
||||
KeyStroke.getKeyStroke('k') to IdeaAction("List-selectPreviousRow"),
|
||||
KeyStroke.getKeyStroke('K') to IdeaAction("List-selectPreviousRowExtendSelection"),
|
||||
KeyStroke.getKeyStroke('l') to IdeaAction("List-selectNextColumn"),
|
||||
KeyStroke.getKeyStroke('L') to IdeaAction("List-selectNextColumnExtendSelection"),
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -21,9 +21,13 @@ internal object VimTableNavigation {
|
||||
),
|
||||
KeyStroke.getKeyStroke('G') to IdeaAction("Table-selectLastRow"),
|
||||
KeyStroke.getKeyStroke('h') to IdeaAction("Table-selectPreviousColumn"),
|
||||
KeyStroke.getKeyStroke('H') to IdeaAction("Table-selectPreviousColumnExtendSelection"),
|
||||
KeyStroke.getKeyStroke('j') to IdeaAction("Table-selectNextRow"),
|
||||
KeyStroke.getKeyStroke('J') to IdeaAction("Table-selectNextRowExtendSelection"),
|
||||
KeyStroke.getKeyStroke('k') to IdeaAction("Table-selectPreviousRow"),
|
||||
KeyStroke.getKeyStroke('K') to IdeaAction("Table-selectPreviousRowExtendSelection"),
|
||||
KeyStroke.getKeyStroke('l') to IdeaAction("Table-selectNextColumn"),
|
||||
KeyStroke.getKeyStroke('L') to IdeaAction("Table-selectNextColumnExtendSelection"),
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -20,15 +20,17 @@ internal object VimTreeNavigation {
|
||||
KeyStroke.getKeyStroke('g') to Parent(
|
||||
mapOf(
|
||||
KeyStroke.getKeyStroke('g') to IdeaAction("Tree-selectFirst"),
|
||||
KeyStroke.getKeyStroke('j') to SelectLastSibling,
|
||||
KeyStroke.getKeyStroke('k') to SelectFirstSibling,
|
||||
)
|
||||
),
|
||||
KeyStroke.getKeyStroke('G') to IdeaAction("Tree-selectLast"),
|
||||
KeyStroke.getKeyStroke('j') to IdeaAction("Tree-selectNext"),
|
||||
KeyStroke.getKeyStroke('j', KeyEvent.ALT_DOWN_MASK) to IdeaAction("Tree-selectNextSibling"),
|
||||
KeyStroke.getKeyStroke('J') to SelectLastSibling,
|
||||
KeyStroke.getKeyStroke('J') to IdeaAction("Tree-selectNextExtendSelection"),
|
||||
KeyStroke.getKeyStroke('k') to IdeaAction("Tree-selectPrevious"),
|
||||
KeyStroke.getKeyStroke('k', KeyEvent.ALT_DOWN_MASK) to IdeaAction("Tree-selectPreviousSibling"),
|
||||
KeyStroke.getKeyStroke('K') to SelectFirstSibling,
|
||||
KeyStroke.getKeyStroke('K') to IdeaAction("Tree-selectPreviousExtendSelection"),
|
||||
KeyStroke.getKeyStroke('o') to ExpandOrCollapseTreeNode,
|
||||
KeyStroke.getKeyStroke('O') to IdeaAction("FullyExpandTreeNode"),
|
||||
KeyStroke.getKeyStroke('p') to IdeaAction("Tree-selectParentNoCollapse"),
|
||||
|
Loading…
Reference in New Issue
Block a user