feat: add move_tab_next/_previous commands
This commit is contained in:
parent
e053a0dcf4
commit
89e9fd7b83
2 changed files with 34 additions and 0 deletions
|
|
@ -1182,6 +1182,16 @@ const cmds = struct {
|
|||
_ = try self.widgets_widget.msg(.{"previous_tab"});
|
||||
}
|
||||
pub const previous_tab_meta: Meta = .{ .description = "Switch to previous tab" };
|
||||
|
||||
pub fn move_tab_next(self: *Self, _: Ctx) Result {
|
||||
_ = try self.widgets_widget.msg(.{"move_tab_next"});
|
||||
}
|
||||
pub const move_tab_next_meta: Meta = .{ .description = "Move tab to next position" };
|
||||
|
||||
pub fn move_tab_previous(self: *Self, _: Ctx) Result {
|
||||
_ = try self.widgets_widget.msg(.{"move_tab_previous"});
|
||||
}
|
||||
pub const move_tab_previous_meta: Meta = .{ .description = "Move tab to previous position" };
|
||||
};
|
||||
|
||||
pub fn handle_editor_event(self: *Self, _: tp.pid_ref, m: tp.message) tp.result {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue