summaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authormejo132023-01-17 22:15:21 +0000
committerGitHub2023-01-17 22:15:21 +0000
commite7e47fd54263fb46f2dbb6fe8954fa489d143752 (patch)
treef663a9546a7d69f67232cdacae0c7b8f63d3ba59 /helix-term/src/commands.rs
parent9530fab4b6f320d212f966e46a0353931a010471 (diff)
Add command to rotate view backward (#5356)
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 7df53a48..15e4b47b 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -384,6 +384,7 @@ impl MappableCommand {
swap_view_down, "Swap with split below",
transpose_view, "Transpose splits",
rotate_view, "Goto next window",
+ rotate_view_reverse, "Goto previous window",
hsplit, "Horizontal bottom split",
hsplit_new, "Horizontal bottom split scratch buffer",
vsplit, "Vertical right split",
@@ -4317,6 +4318,10 @@ fn rotate_view(cx: &mut Context) {
cx.editor.focus_next()
}
+fn rotate_view_reverse(cx: &mut Context) {
+ cx.editor.focus_prev()
+}
+
fn jump_view_right(cx: &mut Context) {
cx.editor.focus_direction(tree::Direction::Right)
}