mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Improve the documentation for move_tab keybind action (#4583)
As a new user of ghostty, it was not intuitive to figure out how to provide the `offset` parameter. It makes sense when you look more of the rest of the options but I think we can still make these docs cleaner, like I have done in this PR. Thanks!
This commit is contained in:
@ -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.
|
||||||
|
Reference in New Issue
Block a user