# window.Window.move

- **Module:** window.Window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L380
- **Page:** https://libtmux.org/reference/ts/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 });
```
