From d98f9f7fe56beefeb294184ffaed24b7ea510a97 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 11 Mar 2021 06:31:05 +0000 Subject: Add split-window -Z to start the pane zoomed, GitHub issue 2591. --- tmux.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index d5e86e13..3a75e678 100644 --- a/tmux.h +++ b/tmux.h @@ -1862,6 +1862,7 @@ struct spawn_context { #define SPAWN_NONOTIFY 0x10 #define SPAWN_FULLSIZE 0x20 #define SPAWN_EMPTY 0x40 +#define SPAWN_ZOOM 0x80 }; /* Mode tree sort order. */ @@ -2752,7 +2753,7 @@ void window_resize(struct window *, u_int, u_int, int, int); void window_pane_send_resize(struct window_pane *, int); int window_zoom(struct window_pane *); int window_unzoom(struct window *); -int window_push_zoom(struct window *, int); +int window_push_zoom(struct window *, int, int); int window_pop_zoom(struct window *); void window_lost_pane(struct window *, struct window_pane *); void window_remove_pane(struct window *, struct window_pane *); @@ -2815,7 +2816,7 @@ void layout_set_size(struct layout_cell *, u_int, u_int, u_int, void layout_make_leaf(struct layout_cell *, struct window_pane *); void layout_make_node(struct layout_cell *, enum layout_type); void layout_fix_offsets(struct window *); -void layout_fix_panes(struct window *); +void layout_fix_panes(struct window *, struct window_pane *); void layout_resize_adjust(struct window *, struct layout_cell *, enum layout_type, int); void layout_init(struct window *, struct window_pane *); @@ -2825,7 +2826,8 @@ void layout_resize_pane(struct window_pane *, enum layout_type, int, int); void layout_resize_pane_to(struct window_pane *, enum layout_type, u_int); -void layout_assign_pane(struct layout_cell *, struct window_pane *); +void layout_assign_pane(struct layout_cell *, struct window_pane *, + int); struct layout_cell *layout_split_pane(struct window_pane *, enum layout_type, int, int); void layout_close_pane(struct window_pane *); -- cgit From 3eb91efba160eff0b077a5fee902edb632f7fdca Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 11 Mar 2021 06:41:04 +0000 Subject: Add an "absolute-centre" alignment to use the centre of the total space instead of only the available space. From Magnus Gross in GitHub issue 2578. --- tmux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 3a75e678..e8d2e8c3 100644 --- a/tmux.h +++ b/tmux.h @@ -740,7 +740,8 @@ enum style_align { STYLE_ALIGN_DEFAULT, STYLE_ALIGN_LEFT, STYLE_ALIGN_CENTRE, - STYLE_ALIGN_RIGHT + STYLE_ALIGN_RIGHT, + STYLE_ALIGN_ABSOLUTE_CENTRE }; /* Style list. */ -- cgit From ee0df1b8f8a9099fbd67a73c9fb20b89c64d6106 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 11 Mar 2021 07:08:18 +0000 Subject: Tidy old jobs every hour instead of every 30 seconds. --- tmux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index e8d2e8c3..1fc27b53 100644 --- a/tmux.h +++ b/tmux.h @@ -1947,6 +1947,7 @@ char *paste_make_sample(struct paste_buffer *); struct format_tree; struct format_modifier; typedef void *(*format_cb)(struct format_tree *); +void format_tidy_jobs(void); const char *format_skip(const char *, const char *); int format_true(const char *); struct format_tree *format_create(struct client *, struct cmdq_item *, int, -- cgit