This commit is contained in:
Kovid Goyal
2022-04-17 08:43:23 +05:30
parent 34c18bacd8
commit 4372cf2893
2 changed files with 2 additions and 2 deletions

View File

@@ -2774,7 +2774,7 @@ pager, etc. on supported shells. Set to ``disabled`` to turn off shell
integration, completely. See :ref:`shell_integration` for details. integration, completely. See :ref:`shell_integration` for details.
''') ''')
opt('allow_cloning', 'ask', choices=('yes', 'no', 'ask'), long_text=''' opt('allow_cloning', 'ask', choices=('yes', 'y', 'true', 'no', 'n', 'false', 'ask'), long_text='''
Control whether programs running in the terminal can request new Control whether programs running in the terminal can request new
windows to be created. The canonical example is :code:`clone-in-kitty`. windows to be created. The canonical example is :code:`clone-in-kitty`.
By default, kitty will ask for permission for each clone request. By default, kitty will ask for permission for each clone request.

View File

@@ -1022,7 +1022,7 @@ class Window:
' Allow it do so, once?'), ' Allow it do so, once?'),
partial(self.handle_remote_clone_confirmation, cdata), window=self, partial(self.handle_remote_clone_confirmation, cdata), window=self,
) )
elif ac == 'yes': elif ac in ('yes', 'y', 'true'):
self.handle_remote_clone_confirmation(cdata, True) self.handle_remote_clone_confirmation(cdata, True)
self.current_clone_data = '' self.current_clone_data = ''
return return