# window.settings.Window.option_names

- **Module:** window.settings.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window/settings.rs#L37
- **Page:** https://libtmux.org/reference/rs/window-settings-window-option_names/

```
window.settings.Window.option_names(self) -> Result<Vec<String>, Error>
```

List the option names set at this window's scope.

Values are not included: tmux renders them for display with three
different quoting styles, so re-parsing them would be guesswork. Read
each value with [`Self::get_option`], which returns exact bytes.

# Errors

Returns an error when tmux refuses the listing.
