Add an option to kitty.conf to specify a default startup session

Fixes #641
This commit is contained in:
Kovid Goyal
2018-06-16 08:14:11 +05:30
parent 26f50a451e
commit 12cbcf1c17
3 changed files with 17 additions and 2 deletions

View File

@@ -616,6 +616,12 @@ opening new windows, closing windows, reading the content of windows, etc.
Note that this even works over ssh connections.
'''))
o('startup_session', 'none', option_type=lambda x: (None if x.lower() == 'none' else x), long_text=_('''
Path to a session file to use for all kitty instances. Can be overridden
by using the :option:`--startup-session` command line option for individual
instances. See :ref:`sessions` in the kitty documentation for details.
'''))
o('clipboard_control', 'write-clipboard write-primary', option_type=lambda x: frozenset(x.lower().split()), long_text=_('''
Allow programs running in kitty to read and write from the clipboard. You can
control exactly which actions are allowed. The set of possible actions is: