# tmuxp.cli.search.WorkspaceFields

- **Module:** tmuxp.cli.search
- **Package:** tmuxp
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/cli/search.py#L460
- **Bases:** [`t.TypedDict`](https://docs.python.org/3/library/typing.html#typing.TypedDict)
- **Page:** https://libtmux.org/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields/

Extracted searchable fields from a workspace file.

## Examples

```python
>>> fields: WorkspaceFields = {
...     "name": "dev",
...     "path": "~/.tmuxp/dev.yaml",
...     "session_name": "development",
...     "windows": ["editor", "shell"],
...     "panes": ["vim", "git status"],
... }
>>> fields["name"]
'dev'
```

## Members

### Collections and queries

- [`windows`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields-windows/) (attribute)
- [`panes`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields-panes/) (attribute)

### Other members

- [`name`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields-name/) (attribute)
- [`path`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields-path/) (attribute)
- [`session_name`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacefields-session_name/) (attribute)
