Nicer fix for showing cwd in tab titles

This commit is contained in:
Kovid Goyal
2022-07-26 12:33:53 +05:30
parent f6a1eb19d7
commit 352c07987b
4 changed files with 11 additions and 17 deletions

View File

@@ -234,6 +234,10 @@ class Tab: # {{{
w = self.active_window
return w.get_cwd_of_child(oldest) if w else None
@property
def active_wd(self) -> str:
return self.get_cwd_of_active_window() or ''
def set_title(self, title: str) -> None:
self.name = title or ''
self.mark_tab_bar_dirty()