Add completion of conf filenames to kitty @ set-colors

This commit is contained in:
Kovid Goyal 2020-03-29 08:41:27 +05:30
parent e3af9f68d3
commit 610e9afdf0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -57,6 +57,7 @@ Restore all colors to the values they had at kitty startup. Note that if you spe
this option, any color arguments are ignored and --configured and --all are implied.
''' + '\n\n' + MATCH_WINDOW_OPTION + '\n\n' + MATCH_TAB_OPTION.replace('--match -m', '--match-tab -t')
argspec = 'COLOR_OR_FILE ...'
args_completion = {'files': ('CONF files', ('*.conf',))}
def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType:
final_colors: Dict[str, int] = {}