# DEFAULT_WINDOW_MENU

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L36
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-define-key-bindings-c-default_window_menu/

```c
#define DEFAULT_WINDOW_MENU " '#{?#{>:#{session_windows},1},,-}Swap Left' 'l' {swap-window -t:-1}" \
" '#{?#{>:#{session_windows},1},,-}Swap Right' 'r' {swap-window -t:+1}" \
" '#{?pane_marked_set,,-}Swap Marked' 's' {swap-window}" \
" ''" \
" 'Kill' 'X' {kill-window}" \
" 'Respawn' 'R' {respawn-window -k}" \
" '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}" \
" 'Rename' 'n' {command-prompt -I \"#W\" \"rename-window -- '%%'\"}" \
" ''" \
" 'New After' 'w' {new-window -a}" \
" 'New At End' 'W' {new-window}"
```

## Referenced by

- [`key_bindings_init`](/en/tmux/3.2a/reference/c-function-key_bindings_init/) (function)

## Referenced declarations

- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
