# LibTmux::Model::SessionRef.renumber-windows

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L163
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-sessionref-renumber-windows/

```
method renumber-windows(--> Result:D)
```

Renumber this session's links; previously captured indices may become stale.

Renumber this session's links; previously captured indices may become stale.

## tmux command

The tmux commands behind `renumber-windows`.

- [`move-window`](/en/tmux/latest/manual/move-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_move_window_entry`](/en/tmux/latest/reference/c-variable-cmd_move_window_entry/) (attribute)
- [`cmd_move_window_exec`](/en/tmux/latest/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function)
