Textualize / trogon

Easily turn your Click CLI into a powerful terminal application
MIT License
2.4k stars 54 forks source link

Additional Completion Options for Files/Folders #61

Open ddsmit opened 9 months ago

ddsmit commented 9 months ago

First of all, I'd like to say how much I like this tool short of some funky output I get in windows (addressed with another issue). The paradigm of keyboard friendly gui for someone like me who struggles with RSI combined with mouse functionality is great, and the ease to add it to my app is amazing.

I am using this tool with typer, and I have limited knowledge of click and what capabilities it has. Type has the ability to using type annotations to define an input as a folder or a file:

somefile: Annotated[typer.FileText, typer.Argument(mode="r")]

See the docs here.

It would be great if trogon could read these types and provide an icon for brining up a file/folder selector and if some autocomplete could be included (I love how Powershell in Windows Terminal will either complete a path or give me a list of options that fit).