This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user