# types.NewWindowOptions.direction

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/types.ts#L144
- **Page:** https://libtmux.org/en/ts/latest/reference/types-newwindowoptions-direction/

Place the window before or after the session's current window.

Relative to whichever window the session has selected, not to a window
named here — the command addresses the session, so that is the anchor tmux
measures from. Without this or [`index`](/en/ts/latest/reference/types-newwindowoptions-index/), tmux uses the first free index.
Cannot be combined with [`index`](/en/ts/latest/reference/types-newwindowoptions-index/).
