aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/remote-dev/home.nix
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:10 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:10 +0100
commit2fa5bfcb240552d7787911ae2c29e71c5058246a (patch)
tree2d4d025f28d3bf1690d6d3a85d159b3bb5a07c24 /remote-dev/home.nix
parentc4453276b9c351094ce247150918a2dd50429881 (diff)
downloaddotfiles-2fa5bfcb240552d7787911ae2c29e71c5058246a.tar.gz
dotfiles-2fa5bfcb240552d7787911ae2c29e71c5058246a.tar.bz2
dotfiles-2fa5bfcb240552d7787911ae2c29e71c5058246a.zip
fix(zsh): only rename zellij tab when our pane is focused
`zellij action rename-tab` always targets the focused tab — there is no CLI way to bind the rename to the calling pane. On session resurrect zellij re-spawns every shell almost simultaneously while one tab is focused, so every precmd hook fires and they all race to rename that single focused tab; the last writer wins and the rest of the tabs are stuck at `Tab #N`. This is the "all tabs got the same label" bug from earlier. Guard the rename hooks behind a focused-pane check using `zellij action list-clients` (matches the `terminal_<ZELLIJ_PANE_ID>` column). Background panes silently skip the rename and update lazily the next time the user focuses them and a prompt fires. After resurrect that means untouched tabs say `Tab #N` until you visit them — but no tab gets a wrong label anymore.
Diffstat (limited to 'remote-dev/home.nix')
0 files changed, 0 insertions, 0 deletions