trogon icon indicating copy to clipboard operation
trogon copied to clipboard

Additional Completion Options for Files/Folders

Open ddsmit opened this issue 2 years ago • 1 comments

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).

ddsmit avatar Sep 13 '23 14:09 ddsmit

@ddsmit Thanks for filing! Trogon was initially built to support Click applications; right now Trogon only very lightly supports Typer, in that there's a small wrapper so that Trogon can get the underlying Click app from the Typer app. I think we will need to solve https://github.com/Textualize/trogon/issues/43 first before this can gain traction.

daneah avatar Oct 25 '24 21:10 daneah