From d0985a69b6707f3a91f0e3300599025cbdfc8e94 Mon Sep 17 00:00:00 2001 From: xconverge Date: Fri, 18 Nov 2016 22:22:54 -0800 Subject: [PATCH 1/2] fixes #1064 --- src/actions/actions.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/actions/actions.ts b/src/actions/actions.ts index 8f56c831468..f59e988b06e 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -2913,6 +2913,21 @@ class MoveToLeftPane extends BaseCommand { } } +@RegisterAction +class CycleThroughPanes extends BaseCommand { + modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; + keys = ["", ""]; + + public async exec(position: Position, vimState: VimState): Promise { + vimState.postponedCodeViewChanges.push({ + command: "workbench.action.navigateEditorGroups", + args: {} + }); + + return vimState; + } +} + class BaseTabCommand extends BaseCommand { modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; runsOnceForEachCountPrefix = true; From 10cea48d0772fd3bf6e2aa47b2cea27527ccea6b Mon Sep 17 00:00:00 2001 From: xconverge Date: Fri, 18 Nov 2016 22:30:36 -0800 Subject: [PATCH 2/2] fixes #1060 --- src/actions/actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/actions/actions.ts b/src/actions/actions.ts index f59e988b06e..57f5c53e150 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -2886,7 +2886,8 @@ class MoveRightWithSpace extends BaseMovement { @RegisterAction class MoveToRightPane extends BaseCommand { modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; - keys = ["", "l"]; + keys = [["", "l"], + ["", ""]]; public async exec(position: Position, vimState: VimState): Promise { vimState.postponedCodeViewChanges.push({ @@ -2901,7 +2902,8 @@ class MoveToRightPane extends BaseCommand { @RegisterAction class MoveToLeftPane extends BaseCommand { modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine]; - keys = ["", "h"]; + keys = [["", "h"], + ["", ""]]; public async exec(position: Position, vimState: VimState): Promise { vimState.postponedCodeViewChanges.push({