# types.NewWindowOptions.direction

- **Module:** types.NewWindowOptions
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L132
- **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 the window goes at the first free index.
