|
|
@ -37,7 +37,7 @@ use helix_view::{
|
|
|
|
info::Info,
|
|
|
|
info::Info,
|
|
|
|
input::KeyEvent,
|
|
|
|
input::KeyEvent,
|
|
|
|
keyboard::KeyCode,
|
|
|
|
keyboard::KeyCode,
|
|
|
|
tree::{Dimension, Resize},
|
|
|
|
tree::{self, Dimension, Resize},
|
|
|
|
view::View,
|
|
|
|
view::View,
|
|
|
|
Document, DocumentId, Editor, ViewId,
|
|
|
|
Document, DocumentId, Editor, ViewId,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -355,7 +355,7 @@ impl MappableCommand {
|
|
|
|
shrink_buffer_width, "Shrink focused container width",
|
|
|
|
shrink_buffer_width, "Shrink focused container width",
|
|
|
|
grow_buffer_height, "Grow focused container height",
|
|
|
|
grow_buffer_height, "Grow focused container height",
|
|
|
|
shrink_buffer_height, "Shrink focused container height",
|
|
|
|
shrink_buffer_height, "Shrink focused container height",
|
|
|
|
buffer_expand_mode, "Enable expand mode on buffer",
|
|
|
|
toggle_focus_window, "Toggle focus mode on buffer",
|
|
|
|
goto_line_start, "Goto line start",
|
|
|
|
goto_line_start, "Goto line start",
|
|
|
|
goto_line_end, "Goto line end",
|
|
|
|
goto_line_end, "Goto line end",
|
|
|
|
goto_next_buffer, "Goto next buffer",
|
|
|
|
goto_next_buffer, "Goto next buffer",
|
|
|
@ -787,8 +787,8 @@ fn shrink_buffer_height(cx: &mut Context) {
|
|
|
|
cx.editor.resize_buffer(Resize::Shrink, Dimension::Height);
|
|
|
|
cx.editor.resize_buffer(Resize::Shrink, Dimension::Height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn buffer_expand_mode(cx: &mut Context) {
|
|
|
|
fn toggle_focus_window(cx: &mut Context) {
|
|
|
|
cx.editor.buffer_expand_mode();
|
|
|
|
cx.editor.toggle_focus_window();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn goto_next_buffer(cx: &mut Context) {
|
|
|
|
fn goto_next_buffer(cx: &mut Context) {
|
|
|
|