# tmuxp.cli.search.WorkspaceSearchResult

- **Module:** tmuxp.cli.search
- **Package:** tmuxp
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/cli/search.py#L496
- **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-workspacesearchresult/

Search result for a workspace that matched.

## Examples

```python
>>> result: WorkspaceSearchResult = {
...     "filepath": "/home/user/.tmuxp/dev.yaml",
...     "source": "global",
...     "fields": {
...         "name": "dev",
...         "path": "~/.tmuxp/dev.yaml",
...         "session_name": "development",
...         "windows": ["editor"],
...         "panes": [],
...     },
...     "matches": {"name": ["dev"]},
... }
>>> result["source"]
'global'
```

## Members

### Other members

- [`fields`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacesearchresult-fields/) (attribute)
- [`filepath`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacesearchresult-filepath/) (attribute)
- [`matches`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacesearchresult-matches/) (attribute)
- [`source`](/en/py/stable/workspace/reference/tmuxp-cli-search-workspacesearchresult-source/) (attribute)
