# session.NewWindowOptions

- **Module:** session
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/session.rs#L967
- **Page:** https://libtmux.org/reference/rs/session-newwindowoptions/

## Members

- `unnamed` (method) — Describe a window with no name, letting tmux choose one.
- `new` (method) — Describe a window with the given name.
- `start_directory` (method) — Set the window's working directory.
- `command` (method) — Run a command instead of the default shell.
- `index` (method) — Place the window at a window index rather than the first free one.
- `placement` (method) — Insert relative to the index rather than at it.
- `environment` (method) — Set an environment variable for the process the new window starts.
- `replace_existing` (method) — Replace whatever already occupies the target index.
- `select` (method) — Make the new window active in its session.
