# plan.ops.windows.NewWindow.start_directory

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

```
plan.ops.windows.NewWindow.start_directory(mut, directory: impl Into<OsString>) -> Self
```

Start the window's pane in this directory.

tmux expands this as a format, so [`crate::escape_format`] belongs
around text a program did not write.
