More completion work

This commit is contained in:
Kovid Goyal
2022-09-16 17:29:41 +05:30
parent 946d44c43f
commit 0ff2446a1a
7 changed files with 46 additions and 5 deletions

View File

@@ -118,6 +118,9 @@ def completion(self: TestCompletion, tdir: str):
add('kitty --s', has_words('--session', '--start-as'))
add('kitty --start-as', all_words('--start-as'))
add('kitty --start-as ', all_words('minimized', 'maximized', 'fullscreen', 'normal'))
add('kitty -1 ', does_not_have_words('@ls', '@'))
add('kitty --directory ', all_words('bin/', 'sub/'))
add('kitty -1d ', all_words('bin/', 'sub/'))
for cmd, tests, result in zip(all_cmds, all_tests, run_tool()):
self.current_cmd = cmd