diff --git a/session-manager.lua b/session-manager.lua index ef08a5b..bbfb600 100644 --- a/session-manager.lua +++ b/session-manager.lua @@ -22,6 +22,7 @@ local function retrieve_workspace_data(window) for _, tab in ipairs(window:mux_window():tabs()) do local tab_data = { tab_id = tostring(tab:tab_id()), + tab_title = tostring(tab:get_title()), panes = {} } @@ -122,6 +123,8 @@ local function recreate_workspace(window, workspace_data) -- Activate the new tab before creating panes new_tab:activate() + -- Restore its title + new_tab:set_title(tab_data.tab_title) -- Recreate panes within this tab for j, pane_data in ipairs(tab_data.panes) do