Skip to content

Commit

Permalink
Implement local filename completion for the transfer kitten
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 25, 2023
1 parent 4b3d29e commit c10ea63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kittens/transfer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ def main(args: List[str]) -> None:
if __name__ == '__main__':
main(sys.argv)
elif __name__ == '__doc__':
from kitty.cli import CompletionSpec
cd = sys.cli_docs # type: ignore
cd['usage'] = usage
cd['options'] = option_text
cd['help_text'] = help_text
cd['short_desc'] = 'Transfer files easily over the TTY device'
cd['args_completion'] = CompletionSpec.from_string('type:file group:"Files"')

0 comments on commit c10ea63

Please sign in to comment.