# LibTmux.list_options

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/configuration.jl#L254
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-list_options/

```
list_options(
    server::LibTmux.Server,
    scope;
    inherit,
    max_bytes,
    kwargs...,
)
```

## Methods

Capture option rows in tmux order, excluding hooks. Scopes follow `get_option`. Values are strings; arrays retain sparse indices and explicit empty overrides. `inherit=true` includes rows marked inherited by tmux. User options follow the same parent scopes as `get_option`. Encoded option metadata preserves arbitrary names when tmux advertises it. Older versions admit portable names only, verifying the listing against exact named reads; ambiguous names or changing values refuse acquisition. `encoding` is `:literal` for admitted strings and `:tmux` for canonical tmux representations, including command values and unpinned types. Each reply is bounded by `max_bytes`; one deadline covers the call.

```julia
list_options(server, scope; inherit=false, max_bytes=1048576, kwargs...)
```

## Parameters

- `server` (`LibTmux.Server`)
- `scope` (`Any`)
- `inherit` (`Bool`)
  Default: `false`.
- `max_bytes` (`Int`)
  Default: `1024 ^ 2`.
- `kwargs`

## Guides

Pages that discuss `list_options`.

- [Ownership and I/O](/en/julia/latest/topics/ownership/)
