Skip to content

Commit bc0b6ab

Browse files
joelpetstevenguh
authored andcommitted
Add directional editor moving bindings (#61)
Add bindings for moving the active editor into other editor groups, either above, below, to its left, or to its right.
1 parent fd2e08c commit bc0b6ab

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Add menu for magit ref `y` in normal mode
1111
- Add configuration commands for setting up both `settings.json` and `keybindings.json`
12+
- Add `<spc> b H/J/K/L` for directional editor moving
1213

1314
### Changed
1415
- Split the core menu logic to another extension (`vscode-which-key`) so this extension can be focused on Vim users

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,30 @@
132132
"type": "command",
133133
"command": "workbench.action.closeActiveEditor"
134134
},
135+
{
136+
"key": "H",
137+
"name": "Move Editor into Left Group",
138+
"type": "command",
139+
"command": "workbench.action.moveEditorToLeftGroup"
140+
},
141+
{
142+
"key": "J",
143+
"name": "Move Editor into Below Group",
144+
"type": "command",
145+
"command": "workbench.action.moveEditorToBelowGroup"
146+
},
147+
{
148+
"key": "K",
149+
"name": "Move Editor into Above Group",
150+
"type": "command",
151+
"command": "workbench.action.moveEditorToAboveGroup"
152+
},
153+
{
154+
"key": "L",
155+
"name": "Move Editor into Right Group",
156+
"type": "command",
157+
"command": "workbench.action.moveEditorToRightGroup"
158+
},
135159
{
136160
"key": "M",
137161
"name": "Close other editors",

0 commit comments

Comments
 (0)