apprt: make gotoTab handle all tab movements

This commit is contained in:
Mitchell Hashimoto
2024-08-26 20:09:45 -07:00
parent 02c6fb5a8c
commit 3d1ee3daa8
4 changed files with 24 additions and 53 deletions

View File

@@ -62,6 +62,16 @@ pub const DesktopNotification = struct {
body: []const u8,
};
/// The tab to jump to. This is non-exhaustive so that integer values represent
/// the index (zero-based) of the tab to jump to. Negative values are special
/// values.
pub const GotoTab = enum(c_int) {
previous = -1,
next = -2,
last = -3,
_,
};
// This is made extern (c_int) to make interop easier with our embedded
// runtime. The small size cost doesn't make a difference in our union.
pub const SplitDirection = enum(c_int) {