-
Notifications
You must be signed in to change notification settings - Fork 275
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
📺 Add zsh completions #514
base: main
Are you sure you want to change the base?
Conversation
Let me know if any of these reviews are an actual concern as most aren't applicable. |
c6db308
to
63d0fe8
Compare
Been busy lately, but I've finally gotten time to come back to this pr. I've changed it so the output from
Thanks for taking the time to review! |
@Logicer16 Thanks. I'll check out the new version in a few days. I am currently working on switching from Commandant to Swift Argument Parser for multiple reasons, one of which is that it can autogenerate completion scripts for zsh, bash, and fish. Once I'm done with it locally (I won't open any new PRs until an existing PR that fixes a breaking lint issue in |
@Logicer16 I have a working local branch in which I've switched from Commandant to Swift Argument Parser (SAP). I've begun to look into SAP generating completion scripts for zsh, bash & fish. It seems like the nicest way to provide custom completions for all 3 shells is to define them in Swift code. When wired via Swift attributes, the generated completion scripts call Moreover, we'll probably switch to outputting JSON from an internal Swift executable to an I'll leave this PR open, but we'll probably use the SAP completions. Sorry that you did work that probably won't be merged, but you'll receive a much more maintainable mas this way. No matter what, we need to wait for @phatblat to release new versions; I should have SAP completion script generation ready before we can release, so you shouldn't see any delay in getting zsh completion released between the SAP-generated script versus if we had merged your hand-coded completion. |
All good. I agree, it would be much simpler to have everything defined in swift. Looking through their documentation, it should be possible to achieve feature parity with what's in this pr. Regardless, with the amount I've learned about zsh in the process, I don't see this as time wasted. Thanks for your time. |
Thanks for your time & effort, too. The SAP-generated zsh completion script is slightly wrong for the auto-created |
#222 has been open for over 5 years now (🥳 congrats). About time someone took care of it, especially as it's the default shell.
Closes #222
Please let me know of any questions/suggestions you might have.