Add window groups to kitty @ ls output

Fixes #6655
This commit is contained in:
Kovid Goyal
2023-09-26 18:41:52 +05:30
parent bda9155be1
commit ef7d4934d2
2 changed files with 11 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ class WindowGroup:
'windows': [w.serialize_state() for w in self.windows]
}
def as_simple_dict(self) -> Dict[str, Any]:
return {
'id': self.id,
'windows': [w.id for w in self.windows],
}
def decoration(self, which: EdgeLiteral, border_mult: int = 1, is_single_window: bool = False) -> int:
if not self.windows:
return 0