Delegate based completion for @launch args

This commit is contained in:
Kovid Goyal
2022-09-19 12:23:45 +05:30
parent dc403156a9
commit fd631bf402
2 changed files with 4 additions and 1 deletions

View File

@@ -164,6 +164,8 @@ def completion(self: TestCompletion, tdir: str):
add('kitty bash ', is_delegate(1, 'bash'))
add('kitty -1 bash ', is_delegate(2, 'bash'))
add('kitty -1 bash --n', is_delegate(2, 'bash'))
add('kitty @launch --type tab bash --n', is_delegate(4, 'bash'))
add('kitty @launch e', all_words('exe1'))
for cmd, tests, result in zip(all_cmds, all_tests, run_tool()):
self.current_cmd = cmd