Merge origin/main into item-414
CI / tests (pull_request) Successful in 5m11s

This commit is contained in:
2026-11-19 03:31:12 +01:00
22 changed files with 536 additions and 118 deletions
+3 -1
View File
@@ -51,6 +51,8 @@ class Listed:
dead: bool
# What its name says its parked chunk awaits, as the words after PARKED; empty for a chunk that isn't parked.
awaits: str = ""
# Whether its name ended in WAITS: its loop asks the human something.
asks: bool = False
@property
def parked(self) -> bool:
@@ -90,7 +92,7 @@ def listed(session: str, run: Tmux) -> list[Listed]:
def as_listed(shown: str, id: str, pane_dead: str) -> Listed:
"""The window tmux shows under the name shown, with the ID id and `#{pane_dead}` as pane_dead."""
name, _, awaits = shown.removesuffix(WAITS).partition(PARKED)
return Listed(name, id, pane_dead == "1", awaits)
return Listed(name, id, pane_dead == "1", awaits, shown.endswith(WAITS))
def everywhere(run: Tmux) -> list[Placed]: