# plan.ops.windows.NewWindow

- **Module:** plan.ops.windows
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/windows.rs#L19
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-windows-newwindow/

Create a window in a session.

## Members

- `new` (method): Create a detached window in this session.
- `index` (method): Place the window at this index rather than the next free one.
- `environment` (method): Set a variable in the window's environment before it starts.
- `focus` (method): Leave the new window, and so its pane, active.
- `name` (method): Name the window.
- `start_directory` (method): Start the window's pane in this directory.
- `command` (method): Run this instead of a shell in the window's pane.
