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

Open to incrementally adding autocomplete? #189

Closed
znd4 opened this issue Oct 31, 2023 · 2 comments
Closed

Open to incrementally adding autocomplete? #189

znd4 opened this issue Oct 31, 2023 · 2 comments

Comments

@znd4
Copy link

znd4 commented Oct 31, 2023

Hi, would you be open to a contribution adding autocomplete for some shells?

I haven't spent enough time digging into the code yet to give a full rundown of the plan, but at least at a high level, I'm thinking of:

  1. adding something like a __completion_data subcommand that outputs structured data about the global options, the subcommands, and the subcommands' options and arguments.
  2. Write a completion function for each shell that parses that __completion_data, accessible as trello completion <shell> or trello completion --shell <zsh>
  3. Document the methods of integrating each shell's completion functions.

I'm most interested in fish, because that's the shell that I'm currently using, and its completion engine seems to be easier to work with, but I'd understand not wanting to merge something like this until bash and zsh are also supported.

@mheap
Copy link
Owner

mheap commented Nov 24, 2023

I've just pushed trello-cli@1.0.0 which includes an autocomplete function. Unfortunately, it doesn't look as though oclif supports fish (oclif/plugin-autocomplete#38)

I'd be happy to see fish support if we can figure out how to integrate with oclif/plugin-autocomplete

@znd4
Copy link
Author

znd4 commented Nov 29, 2023

ah, thanks!

It looks like there have been a few related PRs (here and here) opened since then, but none have been merged. With that in mind, I'll close this issue for now. If, in the future, one of those gets merged, someone can ping here to let you know :)

@znd4 znd4 closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants