@@ -33,6 +33,7 @@ use helix_view::{
33 info::Info,
33 info::Info,
34 input::KeyEvent,
34 input::KeyEvent,
35 keyboard::KeyCode,
35 keyboard::KeyCode,
36 view::View,
37 view::View,
37 Document, DocumentId, Editor, ViewId,
38 Document, DocumentId, Editor, ViewId,
@@ -4080,35 +4081,35 @@ fn rotate_view(cx: &mut Context) {
4082fn jump_view_right(cx: &mut Context) {
4083fn jump_view_right(cx: &mut Context) {
4083− cx.editor.focus_right()
4084+ cx.editor.focus_direction(tree::Direction::Right)
4086fn jump_view_left(cx: &mut Context) {
4087fn jump_view_left(cx: &mut Context) {
4087− cx.editor.focus_left()
4088+ cx.editor.focus_direction(tree::Direction::Left)
4090fn jump_view_up(cx: &mut Context) {
4091fn jump_view_up(cx: &mut Context) {
4091− cx.editor.focus_up()
4092+ cx.editor.focus_direction(tree::Direction::Up)
4094fn jump_view_down(cx: &mut Context) {
4095fn jump_view_down(cx: &mut Context) {
4095− cx.editor.focus_down()
4096+ cx.editor.focus_direction(tree::Direction::Down)
4098fn swap_view_right(cx: &mut Context) {
4099fn swap_view_right(cx: &mut Context) {
4099− cx.editor.swap_right()
4100+ cx.editor.swap_split_in_direction(tree::Direction::Right)
4102fn swap_view_left(cx: &mut Context) {
4103fn swap_view_left(cx: &mut Context) {
4103− cx.editor.swap_left()
4104+ cx.editor.swap_split_in_direction(tree::Direction::Left)
4106fn swap_view_up(cx: &mut Context) {
4107fn swap_view_up(cx: &mut Context) {
4107− cx.editor.swap_up()
4108+ cx.editor.swap_split_in_direction(tree::Direction::Up)
4110fn swap_view_down(cx: &mut Context) {
4111fn swap_view_down(cx: &mut Context) {
4111− cx.editor.swap_down()
4112+ cx.editor.swap_split_in_direction(tree::Direction::Down)
4114fn transpose_view(cx: &mut Context) {
4115fn transpose_view(cx: &mut Context) {