Improve the documentation for move_tab keybind action

This commit is contained in:
Kiril Angov
2025-01-04 12:57:38 -05:00
parent 8f5f432ab6
commit 2dc518d8b0

View File

@ -329,7 +329,7 @@ pub const Action = union(enum) {
goto_tab: usize, goto_tab: usize,
/// Moves a tab by a relative offset. /// Moves a tab by a relative offset.
/// Adjusts the tab position based on `offset` (e.g., -1 for left, +1 for right). /// Adjusts the tab position based on `offset`. For example `move_tab:-1` for left, `move_tab:1` for right.
/// If the new position is out of bounds, it wraps around cyclically within the tab range. /// If the new position is out of bounds, it wraps around cyclically within the tab range.
move_tab: isize, move_tab: isize,
@ -341,7 +341,8 @@ pub const Action = union(enum) {
/// the direction given. For example `new_split:up`. Valid values are left, right, up, down and auto. /// the direction given. For example `new_split:up`. Valid values are left, right, up, down and auto.
new_split: SplitDirection, new_split: SplitDirection,
/// Focus on a split in a given direction. For example `goto_split:up`. Valid values are left, right, up, down, previous and next. /// Focus on a split in a given direction. For example `goto_split:up`.
/// Valid values are left, right, up, down, previous and next.
goto_split: SplitFocusDirection, goto_split: SplitFocusDirection,
/// zoom/unzoom the current split. /// zoom/unzoom the current split.