@libtmux/workspace-cli 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +330 -0
- package/THIRD-PARTY-NOTICES.md +183 -0
- package/dist/app-w7cbtf0n.js +747 -0
- package/dist/completions-2a9fqwq3.js +282 -0
- package/dist/extensions-8v6mfszj.js +268 -0
- package/dist/index-0j386v40.js +7112 -0
- package/dist/main-1de529jm.js +37 -0
- package/dist/main-bfnr2nkj.js +3106 -0
- package/dist/main-c8atq2pj.js +470 -0
- package/dist/main-gh3pafqb.js +369 -0
- package/dist/main.js +35 -0
- package/dist/progress-n08zapg2.js +1649 -0
- package/dist/reference-ebfxh6yp.js +90 -0
- package/dist/tmux-wa2zn8z1.js +893 -0
- package/docs/command-reference.md +227 -0
- package/docs/commands.json +1125 -0
- package/docs/completions/_tmux-workspace +239 -0
- package/docs/completions/tmux-workspace.bash +257 -0
- package/docs/completions/tmux-workspace.fish +430 -0
- package/package.json +49 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Workspace command reference
|
|
2
|
+
|
|
3
|
+
Commands and options come from the native parser. See the [CLI README](../README.md)
|
|
4
|
+
for operation behavior, output, and development status.
|
|
5
|
+
|
|
6
|
+
Root options precede the subcommand. Each command lists its own accepted options.
|
|
7
|
+
|
|
8
|
+
## tmux-workspace
|
|
9
|
+
|
|
10
|
+
Manage tmux workspaces from YAML and JSON configuration.
|
|
11
|
+
|
|
12
|
+
Usage: `tmux-workspace [options] [command]`
|
|
13
|
+
|
|
14
|
+
Commands: `load`, `shell`, `import`, `convert`, `debug-info`, `ls`, `search`, `edit`, `freeze`, `completion`.
|
|
15
|
+
|
|
16
|
+
- `-V, --version`: output the version number
|
|
17
|
+
- `--log-level <log_level>`: log level (debug, info, warning, error, critical) (default "warning") Choices: `debug`, `info`, `warning`, `error`, `critical`. Default: `"warning"`.
|
|
18
|
+
- `--color <color>`: when to use colors: auto (default), always, or never Choices: `auto`, `always`, `never`. Default: `"auto"`.
|
|
19
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
20
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
21
|
+
- `-h, --help`: display help for command
|
|
22
|
+
|
|
23
|
+
## tmux-workspace load
|
|
24
|
+
|
|
25
|
+
Load workspace files, attach to existing sessions, or append windows.
|
|
26
|
+
|
|
27
|
+
Usage: `tmux-workspace load [options] <workspace_files...>`
|
|
28
|
+
|
|
29
|
+
- `workspace_files`: filepath to session or filename of session in tmuxp workspace directory
|
|
30
|
+
|
|
31
|
+
- `-L <socket_name>`: passthru to tmux(1) -L
|
|
32
|
+
- `-S <socket_path>`: passthru to tmux(1) -S
|
|
33
|
+
- `-f <tmux_config_file>`: passthru to tmux(1) -f
|
|
34
|
+
- `-s <new_session_name>`: start new session with new session name
|
|
35
|
+
- `-y, --yes`: always answer yes Default: `false`.
|
|
36
|
+
- `-d`: load the session without attaching it Default: `false`.
|
|
37
|
+
- `-a, --append`: load workspace, appending windows to the current session Default: `false`.
|
|
38
|
+
- `-2`: force tmux to assume the terminal supports 256 colours.
|
|
39
|
+
- `-8`: Reject unsupported legacy 88-color mode before loading.
|
|
40
|
+
- `--log-file <log_file>`: file to log errors/output to
|
|
41
|
+
- `--progress-format <progress_format>`: Progress line format: preset name (default, minimal, window, pane, verbose) or a format string with tokens {session}, {window}, {progress}, {window_progress}, {pane_progress}, etc. Env: TMUXP_PROGRESS_FORMAT
|
|
42
|
+
- `--progress-lines <panel_lines>`: Recent script-output lines in the terminal panel (default: 3). 0 forwards each stream directly; -1 uses terminal height. Retention is bounded. Env: TMUXP_PROGRESS_LINES
|
|
43
|
+
- `--no-progress`: Disable terminal progress. Env: TMUXP_PROGRESS=0 Default: `false`.
|
|
44
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
45
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
46
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
47
|
+
- `-h, --help`: display help for command
|
|
48
|
+
|
|
49
|
+
## tmux-workspace shell
|
|
50
|
+
|
|
51
|
+
Open the Python tmuxp shell with the selected tmux context.
|
|
52
|
+
|
|
53
|
+
Usage: `tmux-workspace shell [options] [session_name] [window_name]`
|
|
54
|
+
|
|
55
|
+
- `session_name`
|
|
56
|
+
- `window_name`
|
|
57
|
+
|
|
58
|
+
- `-S <socket_path>`: pass-through for tmux -S
|
|
59
|
+
- `-L <socket_name>`: pass-through for tmux -L
|
|
60
|
+
- `-c <command>`: instead of opening shell, execute python code in libtmux and exit
|
|
61
|
+
- `--best`: use best shell available in site packages Default: `"best"`.
|
|
62
|
+
- `--pdb`: use plain pdb
|
|
63
|
+
- `--code`: use stdlib's code.interact()
|
|
64
|
+
- `--ptipython`: use ptpython + ipython
|
|
65
|
+
- `--ptpython`: use ptpython
|
|
66
|
+
- `--ipython`: use ipython
|
|
67
|
+
- `--bpython`: use bpython
|
|
68
|
+
- `--use-pythonrc`: load PYTHONSTARTUP env var and ~/.pythonrc.py script in --code Default: `false`.
|
|
69
|
+
- `--no-startup`: Do not load Python startup files. Default: `false`.
|
|
70
|
+
- `--use-vi-mode`: use vi-mode in ptpython/ptipython Default: `false`.
|
|
71
|
+
- `--no-vi-mode`: Disable vi editing mode. Default: `false`.
|
|
72
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
73
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
74
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
75
|
+
- `-h, --help`: display help for command
|
|
76
|
+
|
|
77
|
+
## tmux-workspace import
|
|
78
|
+
|
|
79
|
+
Import a teamocil or tmuxinator workspace.
|
|
80
|
+
|
|
81
|
+
Usage: `tmux-workspace import [options] [command]`
|
|
82
|
+
|
|
83
|
+
Commands: `teamocil`, `tmuxinator`.
|
|
84
|
+
|
|
85
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
86
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
87
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
88
|
+
- `-h, --help`: display help for command
|
|
89
|
+
|
|
90
|
+
## tmux-workspace import teamocil
|
|
91
|
+
|
|
92
|
+
Convert a teamocil workspace to tmuxp configuration.
|
|
93
|
+
|
|
94
|
+
Usage: `tmux-workspace import teamocil [options] <workspace_file>`
|
|
95
|
+
|
|
96
|
+
- `workspace_file`: checks current ~/.teamocil and current directory for yaml files
|
|
97
|
+
|
|
98
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
99
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
100
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
101
|
+
- `--save-to <path>`: Write to this destination instead of machine stdout.
|
|
102
|
+
- `--workspace-format <format>`: Document format: yaml or json. Choices: `yaml`, `json`.
|
|
103
|
+
- `--force`: Allow replacing an existing destination.
|
|
104
|
+
- `-h, --help`: display help for command
|
|
105
|
+
|
|
106
|
+
## tmux-workspace import tmuxinator
|
|
107
|
+
|
|
108
|
+
Convert a tmuxinator workspace to tmuxp configuration.
|
|
109
|
+
|
|
110
|
+
Usage: `tmux-workspace import tmuxinator [options] <workspace_file>`
|
|
111
|
+
|
|
112
|
+
- `workspace_file`: checks current ~/.tmuxinator and current directory for yaml files
|
|
113
|
+
|
|
114
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
115
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
116
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
117
|
+
- `--save-to <path>`: Write to this destination instead of machine stdout.
|
|
118
|
+
- `--workspace-format <format>`: Document format: yaml or json. Choices: `yaml`, `json`.
|
|
119
|
+
- `--force`: Allow replacing an existing destination.
|
|
120
|
+
- `-h, --help`: display help for command
|
|
121
|
+
|
|
122
|
+
## tmux-workspace convert
|
|
123
|
+
|
|
124
|
+
Convert a workspace between YAML and JSON.
|
|
125
|
+
|
|
126
|
+
Usage: `tmux-workspace convert [options] <workspace_file>`
|
|
127
|
+
|
|
128
|
+
- `workspace_file`: checks tmuxp and current directory for workspace files.
|
|
129
|
+
|
|
130
|
+
- `-y, --yes`: always answer yes Default: `false`.
|
|
131
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
132
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
133
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
134
|
+
- `--save-to <path>`: Write to this destination instead of machine stdout.
|
|
135
|
+
- `--workspace-format <format>`: Document format: yaml or json. Choices: `yaml`, `json`.
|
|
136
|
+
- `--force`: Allow replacing an existing destination.
|
|
137
|
+
- `-h, --help`: display help for command
|
|
138
|
+
|
|
139
|
+
## tmux-workspace debug-info
|
|
140
|
+
|
|
141
|
+
Show runtime, configuration, and tmux diagnostics.
|
|
142
|
+
|
|
143
|
+
Usage: `tmux-workspace debug-info [options]`
|
|
144
|
+
|
|
145
|
+
- `--json`: output as JSON Default: `false`.
|
|
146
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
147
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
148
|
+
- `-h, --help`: display help for command
|
|
149
|
+
|
|
150
|
+
## tmux-workspace ls
|
|
151
|
+
|
|
152
|
+
List project and saved workspace files.
|
|
153
|
+
|
|
154
|
+
Usage: `tmux-workspace ls [options]`
|
|
155
|
+
|
|
156
|
+
- `--tree`: display workspaces grouped by directory Default: `false`.
|
|
157
|
+
- `--json`: output as JSON Default: `false`.
|
|
158
|
+
- `--ndjson`: output as NDJSON (one JSON per line) Default: `false`.
|
|
159
|
+
- `--full`: include full config content in output Default: `false`.
|
|
160
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
161
|
+
- `-h, --help`: display help for command
|
|
162
|
+
|
|
163
|
+
## tmux-workspace search
|
|
164
|
+
|
|
165
|
+
Search workspace names, sessions, windows, and pane commands.
|
|
166
|
+
|
|
167
|
+
Usage: `tmux-workspace search [options] [query_terms...]`
|
|
168
|
+
|
|
169
|
+
- `query_terms`: search patterns (prefix with field: for field-scoped search)
|
|
170
|
+
|
|
171
|
+
- `-f, --field <field>`: restrict search to field(s): name, session/s, path/p, window/w, pane
|
|
172
|
+
- `-i, --ignore-case`: case-insensitive matching Default: `false`.
|
|
173
|
+
- `-S, --smart-case`: case-insensitive unless pattern has uppercase Default: `false`.
|
|
174
|
+
- `-F, --fixed-strings`: treat patterns as literal strings, not regex Default: `false`.
|
|
175
|
+
- `-w, --word-regexp`: match whole words only Default: `false`.
|
|
176
|
+
- `-v, --invert-match`: show workspaces that do NOT match Default: `false`.
|
|
177
|
+
- `--any`: match ANY pattern (OR logic); default is ALL (AND logic) Default: `false`.
|
|
178
|
+
- `--json`: output as JSON Default: `false`.
|
|
179
|
+
- `--ndjson`: output as NDJSON (one JSON per line) Default: `false`.
|
|
180
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
181
|
+
- `-h, --help`: display help for command
|
|
182
|
+
|
|
183
|
+
## tmux-workspace edit
|
|
184
|
+
|
|
185
|
+
Open a discovered workspace in your editor.
|
|
186
|
+
|
|
187
|
+
Usage: `tmux-workspace edit [options] <workspace_file>`
|
|
188
|
+
|
|
189
|
+
- `workspace_file`: checks current tmuxp and current directory for workspace files.
|
|
190
|
+
|
|
191
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
192
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
193
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
194
|
+
- `-h, --help`: display help for command
|
|
195
|
+
|
|
196
|
+
## tmux-workspace freeze
|
|
197
|
+
|
|
198
|
+
Capture a live tmux session as a workspace document.
|
|
199
|
+
|
|
200
|
+
Usage: `tmux-workspace freeze [options] [session_name]`
|
|
201
|
+
|
|
202
|
+
- `session_name`
|
|
203
|
+
|
|
204
|
+
- `-S <socket_path>`: pass-through for tmux -S
|
|
205
|
+
- `-L <socket_name>`: pass-through for tmux -L
|
|
206
|
+
- `-f, --workspace-format <workspace_format>`: format to save in Choices: `yaml`, `json`.
|
|
207
|
+
- `-o, --save-to <save_to>`: file to save to
|
|
208
|
+
- `-y, --yes`: always answer yes Default: `false`.
|
|
209
|
+
- `-q, --quiet`: Suppress human status messages. Default: `false`.
|
|
210
|
+
- `--force`: overwrite the workspace file Default: `false`.
|
|
211
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
212
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
213
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
214
|
+
- `-h, --help`: display help for command
|
|
215
|
+
|
|
216
|
+
## tmux-workspace completion
|
|
217
|
+
|
|
218
|
+
Print a shell completion script.
|
|
219
|
+
|
|
220
|
+
Usage: `tmux-workspace completion [options] <shell>`
|
|
221
|
+
|
|
222
|
+
- `shell`: Shell to complete in. Choices: `bash`, `zsh`, `fish`.
|
|
223
|
+
|
|
224
|
+
- `--json`: Write JSON; machine operations never prompt.
|
|
225
|
+
- `--ndjson`: Stream NDJSON; takes precedence over --json.
|
|
226
|
+
- `--color <mode>`: Human color: auto, always, or never. Machine output disables color. Choices: `auto`, `always`, `never`.
|
|
227
|
+
- `-h, --help`: display help for command
|