mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Allow using the full launch command in session files
Note this is slightly backward incompatible.
This commit is contained in:
@@ -137,7 +137,11 @@ class Tab: # {{{
|
||||
|
||||
def startup(self, session_tab: 'SessionTab') -> None:
|
||||
for cmd in session_tab.windows:
|
||||
self.new_special_window(cmd)
|
||||
if isinstance(cmd, SpecialWindowInstance):
|
||||
self.new_special_window(cmd)
|
||||
else:
|
||||
from .launch import launch
|
||||
launch(get_boss(), cmd.opts, cmd.args, target_tab=self, force_target_tab=True)
|
||||
self.windows.set_active_window_group_for(self.windows.all_windows[session_tab.active_window_idx])
|
||||
|
||||
def serialize_state(self) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user