Now completion for hyperlinked_grep is automatic thanks to delegation

Also fix delegation for zsh when the command being completed differs
from the current command.
This commit is contained in:
Kovid Goyal
2022-09-19 23:40:03 +05:30
parent 5666b1b0fd
commit 54ec486d3a
3 changed files with 36 additions and 61 deletions

View File

@@ -166,6 +166,7 @@ def completion(self: TestCompletion, tdir: str):
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 +kitten hyperlinked_grep --s', is_delegate(2, 'rg'))
add('kitty @launch e', all_words('exe1', 'exe2'))
for cmd, tests, result in zip(all_cmds, all_tests, run_tool()):