Also report enabled_layouts in kitty @ ls
This commit is contained in:
@@ -39,6 +39,7 @@ class TabDict(TypedDict):
|
|||||||
layout: str
|
layout: str
|
||||||
layout_state: Dict[str, Any]
|
layout_state: Dict[str, Any]
|
||||||
layout_opts: Dict[str, Any]
|
layout_opts: Dict[str, Any]
|
||||||
|
enabled_layouts: List[str]
|
||||||
windows: List[WindowDict]
|
windows: List[WindowDict]
|
||||||
active_window_history: List[int]
|
active_window_history: List[int]
|
||||||
|
|
||||||
@@ -172,6 +173,7 @@ class Tab: # {{{
|
|||||||
'last_used_layout': self._last_used_layout,
|
'last_used_layout': self._last_used_layout,
|
||||||
'layout_opts': self.current_layout.layout_opts,
|
'layout_opts': self.current_layout.layout_opts,
|
||||||
'layout_state': self.current_layout.layout_state,
|
'layout_state': self.current_layout.layout_state,
|
||||||
|
'enabled_layouts': self.enabled_layouts,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -817,6 +819,7 @@ class TabManager: # {{{
|
|||||||
'layout': str(tab.current_layout.name),
|
'layout': str(tab.current_layout.name),
|
||||||
'layout_state': tab.current_layout.layout_state(),
|
'layout_state': tab.current_layout.layout_state(),
|
||||||
'layout_opts': tab.current_layout.layout_opts.serialized(),
|
'layout_opts': tab.current_layout.layout_opts.serialized(),
|
||||||
|
'enabled_layouts': tab.enabled_layouts,
|
||||||
'windows': list(tab.list_windows(active_window, self_window)),
|
'windows': list(tab.list_windows(active_window, self_window)),
|
||||||
'active_window_history': list(tab.windows.active_window_history),
|
'active_window_history': list(tab.windows.active_window_history),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user