mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-13 14:17:07 +02:00
VIM-798 Arrow keys for window navigation commands
Add new mappings to allow window navigation with arrow keys: - ^W-<left> as ^W-h - ^W-<down> as ^W-j - ^W-<up> as ^W-k - ^W-<right> as ^W-l
This commit is contained in:
src/com/maddyhome/idea/vim/action/window
@@ -54,7 +54,7 @@ public class WindowDownAction extends VimCommandAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<List<KeyStroke>> getKeyStrokesSet() {
|
||||
return parseKeysSet("<C-W>j");
|
||||
return parseKeysSet("<C-W>j", "<C-W><Down>");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
@@ -54,7 +54,7 @@ public class WindowLeftAction extends VimCommandAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<List<KeyStroke>> getKeyStrokesSet() {
|
||||
return parseKeysSet("<C-W>h");
|
||||
return parseKeysSet("<C-W>h", "<C-W><Left>");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
@@ -54,7 +54,7 @@ public class WindowRightAction extends VimCommandAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<List<KeyStroke>> getKeyStrokesSet() {
|
||||
return parseKeysSet("<C-W>l");
|
||||
return parseKeysSet("<C-W>l", "<C-W><Right>");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
@@ -54,7 +54,7 @@ public class WindowUpAction extends VimCommandAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<List<KeyStroke>> getKeyStrokesSet() {
|
||||
return parseKeysSet("<C-W>k");
|
||||
return parseKeysSet("<C-W>k", "<C-W><Up>");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
Reference in New Issue
Block a user