Workspaces
Workspace-level commands. A workspace is an independent layout of panes; switch between them with ⌘1…9 or these commands.
list-workspaces
Section titled “list-workspaces”ht list-workspaces# ws:0 build (current)# ws:1 docs# ws:2 scratchLists workspaces with their id, label, and a (current) marker on the focused one. --json returns the structured form.
current-workspace
Section titled “current-workspace”ht current-workspace# ws:0new-workspace
Section titled “new-workspace”ht new-workspace --name proj --cwd ~/codeCreates a new workspace. Both flags are optional — without --name the workspace gets an autogenerated label; without --cwd it inherits the user’s home directory.
select-workspace
Section titled “select-workspace”ht select-workspace --workspace ws:2close-workspace
Section titled “close-workspace”ht close-workspace --workspace ws:2Closes the workspace and all its surfaces. Shells receive SIGHUP; the metadata poller drains them on the next tick.
rename-workspace
Section titled “rename-workspace”ht rename-workspace "my new name"ht rename-workspace --workspace ws:2 "build"Without --workspace, renames the current one.
next-workspace / previous-workspace
Section titled “next-workspace / previous-workspace”ht next-workspaceht previous-workspaceEquivalent to ⌃⌘] / ⌃⌘[.