Skip to content

Commit 080b531

Browse files
committed
docs(index,import): Add comparison to toctree and update import notes
why: Comparison page needs discovery path and importers need improvement notes. what: - Add comparison to docs/index.md Project toctree - Add importer improvement notes for teamocil and tmuxinator
1 parent ac6f482 commit 080b531

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

β€Ždocs/cli/import.mdβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ $ tmuxp import teamocil /path/to/file.json
3838
3939
````
4040

41+
### Importer improvements
42+
43+
The teamocil importer now supports:
44+
45+
- **v1.x format** β€” `windows` at top level with `commands` key in panes
46+
- **Focus** β€” `focus: true` on windows and panes is preserved
47+
- **Window options** β€” `options` on windows are passed through
48+
4149
(import-tmuxinator)=
4250

4351
## From tmuxinator
@@ -71,3 +79,13 @@ $ tmuxp import tmuxinator /path/to/file.json
7179
```
7280
7381
````
82+
83+
### Importer improvements
84+
85+
The tmuxinator importer now supports:
86+
87+
- **Hook mapping** β€” `pre` maps to `on_project_start`, `pre_window` maps to `shell_command_before`
88+
- **CLI args** β€” `cli_args` values (`-f`, `-S`, `-L`) are parsed into tmuxp config equivalents
89+
- **Synchronize** β€” `synchronize` window key is converted
90+
- **Startup focus** β€” `startup_window` / `startup_pane` convert to `focus: true`
91+
- **Named panes** β€” hash-key pane syntax converts to `title` on the pane

β€Ždocs/index.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ api/index
3737
history
3838
migration
3939
about_tmux
40+
Comparison <comparison>
4041
glossary
4142
GitHub <https://github.com/tmux-python/tmuxp>
4243
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for example workspace YAML files."""

β€Žtests/docs/examples/test_examples.pyβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
import functools
6-
import typing as t
76

87
from libtmux.pane import Pane
98
from libtmux.session import Session

0 commit comments

Comments
Β (0)