mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 12:34:44 +02:00
Expose session_name in kitten @ ls output for each window (fix #9732)
Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com> Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/98770c1a-7605-4597-a5ce-f27b35315930
This commit is contained in:
@@ -254,6 +254,7 @@ class WindowDict(TypedDict):
|
||||
created_at: int
|
||||
in_alternate_screen: bool
|
||||
neighbors: NeighborsMap
|
||||
session_name: str
|
||||
|
||||
|
||||
class PipeData(TypedDict):
|
||||
@@ -2106,6 +2107,7 @@ class Window:
|
||||
'created_at': self.created_at,
|
||||
'in_alternate_screen': self.screen.is_using_alternate_linebuf(),
|
||||
'neighbors': neighbors_map,
|
||||
'session_name': self.created_in_session_name,
|
||||
}
|
||||
|
||||
def serialize_state(self) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user