mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
Merge pull request #2485 from axdank/move_current_Tab
gui: add move_current_tab action
This commit is contained in:
@@ -301,6 +301,11 @@ pub const Action = union(enum) {
|
||||
/// is higher than the number of tabs, this will go to the last tab.
|
||||
goto_tab: usize,
|
||||
|
||||
/// Moves a tab by a relative offset.
|
||||
/// Adjusts the tab position based on `offset` (e.g., -1 for left, +1 for right).
|
||||
/// If the new position is out of bounds, it wraps around cyclically within the tab range.
|
||||
move_tab: isize,
|
||||
|
||||
/// Toggle the tab overview.
|
||||
/// This only works with libadwaita enabled currently.
|
||||
toggle_tab_overview: void,
|
||||
@@ -648,6 +653,7 @@ pub const Action = union(enum) {
|
||||
.next_tab,
|
||||
.last_tab,
|
||||
.goto_tab,
|
||||
.move_tab,
|
||||
.toggle_tab_overview,
|
||||
.new_split,
|
||||
.goto_split,
|
||||
|
||||
Reference in New Issue
Block a user