diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index 9ce0934d..4425d51d 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -180,8 +180,8 @@ ["alt+[", "select_prev_sibling", true], ["alt+]", "select_next_sibling", true], ["alt+a", "select_all_siblings"], - ["alt+shift+home", "move_scroll_left"], - ["alt+shift+end", "move_scroll_right"], + ["alt+shift+home", "scroll_left"], + ["alt+shift+end", "scroll_right"], ["alt+shift+up", "add_cursor_up"], ["alt+shift+down", "add_cursor_down"], ["alt+shift+f12", "goto_type_definition"], diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 7748fe53..a1d2a9ff 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -4558,15 +4558,15 @@ pub const Editor = struct { } pub const move_scroll_down_meta: Meta = .{ .description = "Move and scroll down", .arguments = &.{.integer} }; - pub fn move_scroll_left(self: *Self, _: Context) Result { + pub fn scroll_left(self: *Self, _: Context) Result { self.view.move_left(tui.config().scroll_step_horizontal) catch {}; } - pub const move_scroll_left_meta: Meta = .{ .description = "Scroll left" }; + pub const scroll_left_meta: Meta = .{ .description = "Scroll left" }; - pub fn move_scroll_right(self: *Self, _: Context) Result { + pub fn scroll_right(self: *Self, _: Context) Result { self.view.move_right(tui.config().scroll_step_horizontal) catch {}; } - pub const move_scroll_right_meta: Meta = .{ .description = "Scroll right" }; + pub const scroll_right_meta: Meta = .{ .description = "Scroll right" }; pub fn mouse_scroll_left(self: *Self) void { const scroll_step_horizontal = tui.config().scroll_step_horizontal;