Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmuxp ls

Edit this page on GitHub

workspace consumer 0.1.0-alpha.10 · Source

tmuxp compatibility reference. Examples using tmuxp run the Python reference. Local CLI status describes this port’s implemented coverage.

List discovered project and saved workspace files, with optional grouping and configuration content.

List workspace recordsLink to section

Terminal window
$ tmuxp ls --json

JSON output is an object with workspaces and global_workspace_dirs; no workspaces still produces the object with an empty array. --ndjson emits one workspace record per line and emits zero lines for no records. When both format flags are supplied, NDJSON wins. --full includes full configuration content. --tree groups the human display by directory.

Discovery includes nearest project configurations and configured global directories. It is not a recursive scan of every descendant directory. See discovery rules for precedence and candidate names.

Arguments and flagsLink to section

Argument or flagsArity / defaultChoices or meaning
--treeflag; Falsedisplay workspaces grouped by directory
--jsonflag; Falseoutput as JSON
--ndjsonflag; Falseoutput as NDJSON (one JSON per line)
--fullflag; Falseinclude full config content in output

All commands accept -h / --help. Root options precede the command; see the CLI overview. The output reference distinguishes current Python flags from native all-command JSON and NDJSON.

Parser and implementation source.

tmuxp reference source.

Esc

Type to search.