# window.Window.rename

- **Module:** window.Window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/window.ts#L398
- **Page:** https://libtmux.org/en/ts/latest/reference/window-window-rename/

```
window.Window.rename(name: : string) -> Promise<void>
```

Rename this window.

Refuses a name the supported servers would not store identically.

## Example

```ts
await window.rename("editor");
```
