You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dfaac96
Browse filesBrowse the repository at this point in the historyBrowse files
docs(feat[parity]): Recut tmuxinator and teamocil parity docs
why: Document the public parity surface and release notes in one reviewable docs commit.
what:
- Add comparison, CLI, configuration, and example docs for parity features
- Add API pages for new CLI modules and tested examples
- Add changelog coverage for the parity release
Delete one or more workspace config files. Prompts for confirmation unless `-y` is passed.
8
+
9
+
## Command
10
+
11
+
```{eval-rst}
12
+
.. argparse::
13
+
:module: tmuxp.cli
14
+
:func: create_parser
15
+
:prog: tmuxp
16
+
:path: delete
17
+
```
18
+
19
+
## Basic usage
20
+
21
+
Delete a workspace:
22
+
23
+
```console
24
+
$ tmuxp delete old-project
25
+
```
26
+
27
+
Delete without confirmation:
28
+
29
+
```console
30
+
$ tmuxp delete -y old-project
31
+
```
32
+
33
+
Delete multiple workspaces:
34
+
35
+
```console
36
+
$ tmuxp delete proj1 proj2
37
+
```
38
+
39
+
```{note}
40
+
Only workspace files are deletable: the resolved path must end in `.yaml`, `.yml`, or `.json`. Any other file is refused and the command exits with code 1.
Copy file name to clipboardExpand all lines: docs/cli/load.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,3 +253,67 @@ When progress is disabled, logging flows normally to the terminal and no spinner
253
253
### Before-script behavior
254
254
255
255
During `before_script` execution, the progress bar shows a marching animation and a ⏸ status icon, indicating that tmuxp is waiting for the script to finish before continuing with pane creation.
256
+
257
+
## Here mode
258
+
259
+
The `--here` flag reuses the current tmux window instead of creating a new session. This is similar to teamocil's `--here` flag.
260
+
261
+
```console
262
+
$ tmuxp load --here .
263
+
```
264
+
265
+
When used, tmuxp builds the workspace panes inside the current window rather than spawning a new session.
266
+
267
+
`--here` only supports a single workspace file per invocation.
268
+
269
+
```{note}
270
+
When `--here` needs to provision a directory, environment, or shell, tmuxp uses tmux primitives instead of typing `cd` / `export` into the pane. The pane tmuxp itself runs in is never respawned (that would kill the build mid-flight): there the directory is provisioned with a quoted `cd`, environment variables land in the tmux session environment (inherited by the panes the build creates, not the already-running shell), and `window_shell` is skipped with a warning. Any other reused pane is provisioned with `respawn-pane`, which replaces the pane's process before the workspace commands run — long-running child processes in that pane will be terminated.
271
+
```
272
+
273
+
## Skipping shell_command_before
274
+
275
+
The `--no-shell-command-before` flag skips all `shell_command_before` entries at every level (session, window, pane). This is useful for quick reloads when the setup commands (virtualenv activation, etc.) are already active.
276
+
277
+
```console
278
+
$ tmuxp load --no-shell-command-before myproject
279
+
```
280
+
281
+
```{note}
282
+
This flag is intentionally broader than tmuxinator's `--no-pre-window`, which only disables the window-level `pre_window` chain. tmuxp's flag strips `shell_command_before` at all levels for a clean reload experience.
283
+
```
284
+
285
+
## Debug mode
286
+
287
+
The `--debug` flag shows tmux commands as they execute. This disables the progress spinner and attaches a debug handler to libtmux's logger, printing each tmux command to stdout.
288
+
289
+
```console
290
+
$ tmuxp load --debug myproject
291
+
```
292
+
293
+
## Config templating
294
+
295
+
Workspace configs support simple `{{ variable }}` placeholders for variable substitution. Pass values via `--set KEY=VALUE`:
0 commit comments