Skip to content

Commit 4332c12

Browse files
committed
hooks(docs): update module docstring for 3.2+ baseline
why: Minimum supported tmux version is now 3.2a, so documentation should reflect available features rather than version warnings. what: - Replace "Version Compatibility" section with "Hook Features" - Document hook arrays as baseline feature (available in 3.2+) - Note newer features (3.3+, 3.5+) for future reference
1 parent 00bb448 commit 4332c12

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/libtmux/hooks.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
"""Helpers for tmux hooks.
22
3-
tmux Hook Version Compatibility
4-
-------------------------------
5-
Hook array support requires tmux 3.0+.
6-
7-
**tmux 3.0+**:
8-
- Hooks are array options (e.g., ``session-renamed[0]``, ``session-renamed[1]``)
9-
- Sparse indices supported (can have gaps: ``[0]``, ``[5]``, ``[10]``)
10-
- Session-level hooks available
11-
12-
**tmux 3.2+**:
13-
- Window-level hooks via ``-w`` flag
14-
- Pane-level hooks via ``-p`` flag
3+
tmux Hook Features
4+
------------------
5+
Hooks are array options (e.g., ``session-renamed[0]``, ``session-renamed[1]``)
6+
with sparse index support (can have gaps: ``[0]``, ``[5]``, ``[10]``).
7+
8+
All features available in libtmux's minimum supported version (tmux 3.2+):
9+
10+
- Session, window, and pane-level hooks
11+
- Window hooks via ``-w`` flag, pane hooks via ``-p`` flag
1512
- Hook scope separation (session vs window vs pane)
1613
1714
**tmux 3.3+**:

0 commit comments

Comments
 (0)