# constants.WindowDirection

- **Module:** constants
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/constants.ts#L23
- **Page:** https://libtmux.org/en/ts/latest/reference/constants-windowdirection/

Where a new window lands relative to the one it was created from.

tmux inserts at the next index before or after the target and moves the
windows above it up to make room, so indices a caller is holding can shift.
Without either direction the target index *is* the new window's place.
