mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 03:34:25 +00:00
Add hidden panes and a "show desktop" button to the pane list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
17
format.c
17
format.c
@@ -1110,6 +1110,20 @@ format_cb_pane_floating_flag(struct format_tree *ft)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/* Callback for pane_hidden_flag. */
|
||||
static void *
|
||||
format_cb_pane_hidden_flag(struct format_tree *ft)
|
||||
{
|
||||
struct window_pane *wp = ft->wp;
|
||||
|
||||
if (wp != NULL) {
|
||||
if (wp->flags & PANE_HIDDEN)
|
||||
return (xstrdup("1"));
|
||||
return (xstrdup("0"));
|
||||
}
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/* Callback for pane_modal_flag. */
|
||||
static void *
|
||||
format_cb_pane_modal_flag(struct format_tree *ft)
|
||||
@@ -3831,6 +3845,9 @@ static const struct format_table_entry format_table[] = {
|
||||
{ "pane_height", FORMAT_TABLE_STRING,
|
||||
format_cb_pane_height
|
||||
},
|
||||
{ "pane_hidden_flag", FORMAT_TABLE_STRING,
|
||||
format_cb_pane_hidden_flag
|
||||
},
|
||||
{ "pane_id", FORMAT_TABLE_STRING,
|
||||
format_cb_pane_id
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user