aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDave Willett <willett@hey.com>2026-07-08 09:47:15 -0700
committerGitHub <noreply@github.com>2026-07-08 18:47:15 +0200
commit01412c2e0999de5b40b68a9d1a731eea52844338 (patch)
tree8e57345f32224f9c087648f62e67436fe65b5d0a /.github
parentchore(deps): bump cached from 1.1.0 to 2.0.2 (#269) (diff)
downloadsl0pstatus-01412c2e0999de5b40b68a9d1a731eea52844338.tar.gz
sl0pstatus-01412c2e0999de5b40b68a9d1a731eea52844338.tar.xz
sl0pstatus-01412c2e0999de5b40b68a9d1a731eea52844338.zip
feat(command): add {focused_pane_cwd} to run commands in focused cwd (#273)
* feat(command): add {focused_pane_cwd} to run commands in the focused pane's directory Command widgets configured with command_<name>_cwd "{focused_pane_cwd}" now execute in the current working directory of the focused terminal pane, following it as the user changes directories. This relies on zellij's CwdChanged event and get_pane_cwd API. The focused terminal pane of the active tab is tracked via PaneUpdate (seeding the cwd on focus change) and updated on CwdChanged. Affected command results are invalidated so they re-run, and stale results from a previous cwd are discarded to avoid showing the wrong directory. Closes #92 * fix(command): release focused cwd command locks Focused-cwd commands can be invalidated while their first run is still in flight. If that result is later discarded as stale, no command result is stored but the per-command lock remains, preventing future reruns. Release the command lock when invalidating focused-cwd commands so the branch badge can recover on subsequent renders or cwd updates. Add a regression test for rerunning a command with no stored result after its lock is released.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions