[BREAKING] drop misleading move_ from scroll_{left,right}
This might break existing custom keybindings, so we mark it BREAKING for the release notes.
This commit is contained in:
parent
16377e3700
commit
5871583cba
2 changed files with 6 additions and 6 deletions
|
|
@ -180,8 +180,8 @@
|
||||||
["alt+[", "select_prev_sibling", true],
|
["alt+[", "select_prev_sibling", true],
|
||||||
["alt+]", "select_next_sibling", true],
|
["alt+]", "select_next_sibling", true],
|
||||||
["alt+a", "select_all_siblings"],
|
["alt+a", "select_all_siblings"],
|
||||||
["alt+shift+home", "move_scroll_left"],
|
["alt+shift+home", "scroll_left"],
|
||||||
["alt+shift+end", "move_scroll_right"],
|
["alt+shift+end", "scroll_right"],
|
||||||
["alt+shift+up", "add_cursor_up"],
|
["alt+shift+up", "add_cursor_up"],
|
||||||
["alt+shift+down", "add_cursor_down"],
|
["alt+shift+down", "add_cursor_down"],
|
||||||
["alt+shift+f12", "goto_type_definition"],
|
["alt+shift+f12", "goto_type_definition"],
|
||||||
|
|
|
||||||
|
|
@ -4558,15 +4558,15 @@ pub const Editor = struct {
|
||||||
}
|
}
|
||||||
pub const move_scroll_down_meta: Meta = .{ .description = "Move and scroll down", .arguments = &.{.integer} };
|
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 {};
|
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 {};
|
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 {
|
pub fn mouse_scroll_left(self: *Self) void {
|
||||||
const scroll_step_horizontal = tui.config().scroll_step_horizontal;
|
const scroll_step_horizontal = tui.config().scroll_step_horizontal;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue