# window-renamed

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/

> Run when a window is renamed.

hook tmux3.2a

Run when a window is renamed.

* Scope

  window

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `window-renamed command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `window-renamed`

* Control mode

  Also sent to control clients as `%window-renamed`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/#description)

Run when a window is renamed.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/window-renamed/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/#source)

* Defined in

  [`options-table.c:1151`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L1151)

* Fired from

  * [`window.c:405`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L405) in `notify_window`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/), [`notify_window`](https://libtmux.org/en/tmux/3.2a/reference/c-function-notify_window/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#hooks-window-renamed)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-renamed/#used-by)

Library documentation that names this hook.

* Go

  [`tmux.WindowHookValues.WindowRenamed`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-windowrenamed/)
