@@ -33,6 +33,7 @@ use helix_view::{
3333 info::Info,
3434 input::KeyEvent,
3535 keyboard::KeyCode,
36+ tree,
3637 view::View,
3738 Document, DocumentId, Editor, ViewId,
3839};
@@ -4080,35 +4081,35 @@ fn rotate_view(cx: &mut Context) {
40804081}
40814082
40824083fn jump_view_right(cx: &mut Context) {
4083− cx.editor.focus_right()
4084+ cx.editor.focus_direction(tree::Direction::Right)
40844085}
40854086
40864087fn jump_view_left(cx: &mut Context) {
4087− cx.editor.focus_left()
4088+ cx.editor.focus_direction(tree::Direction::Left)
40884089}
40894090
40904091fn jump_view_up(cx: &mut Context) {
4091− cx.editor.focus_up()
4092+ cx.editor.focus_direction(tree::Direction::Up)
40924093}
40934094
40944095fn jump_view_down(cx: &mut Context) {
4095− cx.editor.focus_down()
4096+ cx.editor.focus_direction(tree::Direction::Down)
40964097}
40974098
40984099fn swap_view_right(cx: &mut Context) {
4099− cx.editor.swap_right()
4100+ cx.editor.swap_split_in_direction(tree::Direction::Right)
41004101}
41014102
41024103fn swap_view_left(cx: &mut Context) {
4103− cx.editor.swap_left()
4104+ cx.editor.swap_split_in_direction(tree::Direction::Left)
41044105}
41054106
41064107fn swap_view_up(cx: &mut Context) {
4107− cx.editor.swap_up()
4108+ cx.editor.swap_split_in_direction(tree::Direction::Up)
41084109}
41094110
41104111fn swap_view_down(cx: &mut Context) {
4111− cx.editor.swap_down()
4112+ cx.editor.swap_split_in_direction(tree::Direction::Down)
41124113}
41134114
41144115fn transpose_view(cx: &mut Context) {