# WINDOW_TREE_DEFAULT_FORMAT

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L39
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-define-window-tree-c-window_tree_default_format/

```c
#define WINDOW_TREE_DEFAULT_FORMAT "#{?pane_format," \
    "#{?pane_marked,#[reverse],}#{?pane_floating_flag,#[italics],}" \
    "#{pane_current_command}#{pane_flags}" \
    "#{?#{&&:#{pane_title},#{!=:#{pane_title},#{host_short}}},: \"#{pane_title}\",}" \
",window_format," \
    "#{?window_marked_flag,#[reverse],}" \
    "#{window_name}#{window_flags}" \
    "#{?#{&&:#{==:#{window_panes},1},#{&&:#{pane_title},#{!=:#{pane_title},#{host_short}}}},: \"#{pane_title}\",}" \
"," \
    "#{session_windows} windows" \
    "#{?session_grouped, " \
        "(group #{session_group}: " \
        "#{session_group_list})," \
    "}" \
    "#{?session_attached, (attached),}" \
"}"
```

## Referenced by

- [`window_tree_init`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

- [`session_group`](/en/tmux/3.7c/reference/c-struct-session_group/) (struct)
- [`window_panes`](/en/tmux/3.7c/reference/c-struct-window_panes/) (struct)
