Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Completion Options for Files/Folders #61

Open
ddsmit opened this issue Sep 13, 2023 · 1 comment
Open

Additional Completion Options for Files/Folders #61

ddsmit opened this issue Sep 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ddsmit
Copy link

ddsmit commented Sep 13, 2023

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

@daneah daneah added the enhancement New feature or request label Sep 20, 2024
@daneah
Copy link
Collaborator

daneah commented Oct 25, 2024

@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 #43 first before this can gain traction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants