Skip to content

Commit f4da3f6

Browse files
committed
new_tab omitted title
1 parent 5676da5 commit f4da3f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kitty/rc/ls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .base import MATCH_TAB_OPTION, MATCH_WINDOW_OPTION, ArgsType, Boss, PayloadGetType, PayloadType, RCOptions, RemoteCommand, ResponseType, Tab, Window
1212
from ..boss import OSWindowDict
1313
from ..child import ProcessDesc
14+
from ..launch import is_excluded_env_var
1415

1516
if TYPE_CHECKING:
1617
from kitty.cli_stub import LSRCOptions as CLIOptions
@@ -107,7 +108,7 @@ def convert_to_session(self, data: list[OSWindowDict]) -> str:
107108
session.append('\n\nnew_os_window\n')
108109

109110
for tab in osw['tabs']:
110-
session.append(f'new_tab {tab["title"]}\n')
111+
session.append('new_tab\n')
111112
session.append(f'layout {tab["layout"]}\n')
112113
session.append('\n')
113114

@@ -128,6 +129,8 @@ def env_to_str(self, env: dict[str, str]):
128129
'''Convert an env list to a series of '--env key=value' parameters and return as a string.'''
129130
s = ''
130131
for key in env:
132+
if is_excluded_env_var(key):
133+
continue
131134
s += f'--env \'{key}={env[key]}\' '
132135

133136
return s.strip()

0 commit comments

Comments
 (0)