We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf4fc7 commit 36163fdCopy full SHA for 36163fd
kitty/tabs.py
@@ -321,11 +321,15 @@ def make_relative(cwd: str) -> str:
321
if i == active_idx:
322
launch_cmds.append('focus')
323
if launch_cmds:
324
+ enabled_layouts = list(self.enabled_layouts)
325
+ layout = self._current_layout_name
326
+ if layout not in enabled_layouts:
327
+ enabled_layouts.append(layout)
328
return [
329
'',
330
f'new_tab {self.name}'.rstrip(),
- f'layout {self._current_layout_name}',
- f'enabled_layouts {",".join(self.enabled_layouts)}',
331
+ f'layout {layout}',
332
+ f'enabled_layouts {",".join(enabled_layouts)}',
333
f'set_layout_state {json.dumps(self.current_layout.serialize(self.windows))}',
334
f'cd {most_common_cwd}',
335
''
0 commit comments