Add completion for kitty-tool
This commit is contained in:
parent
2633356842
commit
d2a2af9672
@ -95,6 +95,7 @@ def generate_completions_for_kitty() -> None:
|
|||||||
# The kitty exe
|
# The kitty exe
|
||||||
print('k := root.AddSubCommand(&cli.Command{'
|
print('k := root.AddSubCommand(&cli.Command{'
|
||||||
'Name:"kitty", SubCommandIsOptional: true, ArgCompleter: cli.CompleteExecutableFirstArg, SubCommandMustBeFirst: true })')
|
'Name:"kitty", SubCommandIsOptional: true, ArgCompleter: cli.CompleteExecutableFirstArg, SubCommandMustBeFirst: true })')
|
||||||
|
print('kt := root.AddSubCommand(&cli.Command{Name:"kitty-tool", SubCommandMustBeFirst: true })')
|
||||||
for opt in go_options_for_seq(parse_option_spec()[0]):
|
for opt in go_options_for_seq(parse_option_spec()[0]):
|
||||||
print(opt.as_option('k'))
|
print(opt.as_option('k'))
|
||||||
|
|
||||||
@ -121,6 +122,7 @@ def generate_completions_for_kitty() -> None:
|
|||||||
|
|
||||||
# @
|
# @
|
||||||
print('at.EntryPoint(k)')
|
print('at.EntryPoint(k)')
|
||||||
|
print('at.EntryPoint(kt)')
|
||||||
|
|
||||||
# clone-in-kitty, edit-in-kitty
|
# clone-in-kitty, edit-in-kitty
|
||||||
print('cik := root.AddSubCommand(&cli.Command{Name:"clone-in-kitty"})')
|
print('cik := root.AddSubCommand(&cli.Command{Name:"clone-in-kitty"})')
|
||||||
|
|||||||
@ -148,6 +148,8 @@ def completion(self: TestCompletion, tdir: str):
|
|||||||
add('kitty @launch --cwd ', has_words('current', 'oldest', 'last_reported'))
|
add('kitty @launch --cwd ', has_words('current', 'oldest', 'last_reported'))
|
||||||
add('kitty @launch --logo ', all_words('exe-not3.png'))
|
add('kitty @launch --logo ', all_words('exe-not3.png'))
|
||||||
add('kitty @launch --logo ~', all_words('~/exe-not3.png'))
|
add('kitty @launch --logo ~', all_words('~/exe-not3.png'))
|
||||||
|
add('kitty-tool ', has_words('@', '@ls'))
|
||||||
|
add('kitty-tool @launch --ty', has_words('--type'))
|
||||||
|
|
||||||
add('kitty + ', has_words('launch', 'kitten'))
|
add('kitty + ', has_words('launch', 'kitten'))
|
||||||
add('kitty + kitten ', has_words('icat', 'diff'))
|
add('kitty + kitten ', has_words('icat', 'diff'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user