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

tmuxp.workspace.finders.get_workspace_dir_candidates

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

tmuxp.workspace.finders.get_workspace_dir_candidates ( ) → list[dict[str, t.Any]]
function [source]
function [source]
tmuxp.workspace.finders.get_workspace_dir_candidates

Return all candidate workspace directories with existence status.

Returns a list of all directories that tmuxp checks for workspaces, in priority order, with metadata about each.

The priority order is: 1. TMUXP_CONFIGDIR environment variable (if set) 2. XDG_CONFIG_HOME/tmuxp (if XDG_CONFIG_HOME set) OR ~/.config/tmuxp/ 3. ~/.tmuxp (legacy default)

Examples

>>> candidates = get_workspace_dir_candidates()
>>> isinstance(candidates, list)
True
>>> all('path' in c and 'exists' in c for c in candidates)
True
Returns

list[dict[str, Any]] List of dicts with: - path: str (privacy-masked via PrivatePath) - source: str (e.g., "$TMUXP_CONFIGDIR", "$XDG_CONFIG_HOME/tmuxp", "Legacy") - exists: bool - workspace_count: int (0 if not exists) - active: bool (True if this is the directory get_workspace_dir() returns)

Esc

Type to search.