# window.Window.move

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

```
window.Window.move(options: : MoveWindowOptions = {}) -> Promise<void>
```

Move this window to another session or index without selecting it.

Moves this placement. Sessions that are grouped share one window list, so
moving a window they share moves it in all of them; sessions that merely
link the same window keep their own lists, and only this one moves.

## Example

```ts
await window.move({ index: 3 });
```
