diff --git a/src/actions/commands/actions.ts b/src/actions/commands/actions.ts index 1019ca95465..455573bc28d 100644 --- a/src/actions/commands/actions.ts +++ b/src/actions/commands/actions.ts @@ -2104,6 +2104,36 @@ class MoveToRightPane extends BaseCommand { } } +@RegisterAction +class MoveToLowerPane extends BaseCommand { + modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; + keys = [["", "j"], ["", ""], [""]]; + + public async exec(position: Position, vimState: VimState): Promise { + vimState.postponedCodeViewChanges.push({ + command: "workbench.action.navigateDown", + args: {} + }); + + return vimState; + } +} + +@RegisterAction +class MoveToUpperPane extends BaseCommand { + modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; + keys = [["", "k"], ["", ""], [""]]; + + public async exec(position: Position, vimState: VimState): Promise { + vimState.postponedCodeViewChanges.push({ + command: "workbench.action.navigateUp", + args: {} + }); + + return vimState; + } +} + @RegisterAction class MoveToLeftPane extends BaseCommand { modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; @@ -2119,14 +2149,15 @@ class MoveToLeftPane extends BaseCommand { } } + @RegisterAction class CycleThroughPanes extends BaseCommand { modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; - keys = ["", ""]; + keys = [["", ""], ["", "w"]]; public async exec(position: Position, vimState: VimState): Promise { vimState.postponedCodeViewChanges.push({ - command: "workbench.action.navigateRight", + command: "workbench.action.navigateEditorGroups", args: {} });