# tmux.NewWindowRequest.Direction

- **Module:** tmux.NewWindowRequest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_lifecycle.go#L44
- **Page:** https://libtmux.org/reference/go/tmux-newwindowrequest-direction/

Direction places the new winlink relative to the target. Its zero value uses tmux's next free index with Session.NewWindow when Index is nil, but keeps Window.NewWindow on the receiver's occupied target. Use NewWindowDirectionAfter or NewWindowDirectionBefore for non-destructive relative creation through Window.NewWindow.
