mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
macos: make move_tab work
This commit is contained in:
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Macros
|
||||
@@ -379,6 +380,11 @@ typedef struct {
|
||||
ghostty_action_resize_split_direction_e direction;
|
||||
} ghostty_action_resize_split_s;
|
||||
|
||||
// apprt.action.MoveTab
|
||||
typedef struct {
|
||||
ssize_t amount;
|
||||
} ghostty_action_move_tab_s;
|
||||
|
||||
// apprt.action.GotoTab
|
||||
typedef enum {
|
||||
GHOSTTY_GOTO_TAB_PREVIOUS = -1,
|
||||
@@ -517,6 +523,7 @@ typedef enum {
|
||||
GHOSTTY_ACTION_TOGGLE_WINDOW_DECORATIONS,
|
||||
GHOSTTY_ACTION_TOGGLE_QUICK_TERMINAL,
|
||||
GHOSTTY_ACTION_TOGGLE_VISIBILITY,
|
||||
GHOSTTY_ACTION_MOVE_TAB,
|
||||
GHOSTTY_ACTION_GOTO_TAB,
|
||||
GHOSTTY_ACTION_GOTO_SPLIT,
|
||||
GHOSTTY_ACTION_RESIZE_SPLIT,
|
||||
@@ -543,6 +550,7 @@ typedef enum {
|
||||
typedef union {
|
||||
ghostty_action_split_direction_e new_split;
|
||||
ghostty_action_fullscreen_e toggle_fullscreen;
|
||||
ghostty_action_move_tab_s move_tab;
|
||||
ghostty_action_goto_tab_e goto_tab;
|
||||
ghostty_action_goto_split_e goto_split;
|
||||
ghostty_action_resize_split_s resize_split;
|
||||
|
||||
Reference in New Issue
Block a user