Merge branch 'ls-title-overridden' of https://github.com/dannydulai/kitty

This commit is contained in:
Kovid Goyal 2026-03-17 22:11:42 +05:30
commit ecf497b5ab
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View file

@ -93,6 +93,7 @@ class TabDict(TypedDict):
is_focused: bool
is_active: bool
title: str
title_overridden: bool
layout: str
layout_state: dict[str, Any]
layout_opts: dict[str, Any]
@ -1388,6 +1389,7 @@ def list_tabs(
'is_focused': tab is active_tab and tab.os_window_id == current_focused_os_window_id(),
'is_active': tab is active_tab,
'title': tab.name or tab.title,
'title_overridden': bool(tab.name),
'layout': str(tab.current_layout.name),
'layout_state': tab.current_layout.serialize(tab.windows),
'layout_opts': tab.current_layout.layout_opts.serialized(),

View file

@ -238,6 +238,7 @@ class WindowDict(TypedDict):
is_focused: bool
is_active: bool
title: str
title_overridden: bool
pid: int | None
cwd: str
cmdline: list[str]
@ -2088,6 +2089,7 @@ def as_dict(
'is_focused': is_focused,
'is_active': is_active,
'title': self.title,
'title_overridden': self.override_title is not None,
'pid': self.child.pid,
'cwd': self.child.current_cwd or self.child.cwd,
'cmdline': self.child.cmdline,