# DEFAULT_WINDOW_MENU

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L37
- **Page:** https://libtmux.org/en/tmux/latest/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 -FI \"#W\" {rename-window -t '#{window_id}' -- '%%'}}" \
" ''" \
" 'New After' 'w' {new-window -a}" \
" 'New At End' 'W' {new-window}"
```

## Referenced by

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

## Referenced declarations

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