# types.NewWindowOptions.direction

- **Module:** types.NewWindowOptions
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L132
- **Page:** https://libtmux.org/reference/ts/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.
