When creating a new window/tab with the same cwd as the current window automatically put the newwindow into the same session as the current window

This commit is contained in:
Kovid Goyal
2025-08-23 13:24:48 +05:30
parent d3c46a829d
commit e176b723f5
6 changed files with 59 additions and 16 deletions

View File

@@ -52,6 +52,7 @@ class TabBarData(NamedTuple):
total_progress: int
last_focused_window_with_progress_id: int
session_name: str
active_session_name: str
class DrawData(NamedTuple):
@@ -278,6 +279,8 @@ def draw_title(draw_data: DrawData, screen: Screen, tab: TabBarData, index: int,
eval_locals = {
'index': index,
'layout_name': tab.layout_name,
'session_name': tab.session_name,
'active_session_name': tab.active_session_name,
'num_windows': tab.num_windows,
'num_window_groups': tab.num_window_groups,
'title': tab.title,