Merge pull request #2485 from axdank/move_current_Tab

gui: add move_current_tab action
This commit is contained in:
Mitchell Hashimoto
2024-10-25 14:15:16 -07:00
committed by GitHub
13 changed files with 188 additions and 1 deletions

View File

@@ -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,