#zsh gleam completions
1 messages · Page 1 of 1 (latest)
oooh! So glad I switched to zsh last week heheh
wohoo
this will be yet another tool i will start using because of the Jak...
Is there a reason the Gleam binary doesn't have completions already? Believe there's a crate that can do it for clap 👀
No idea how that would work
It's pretty common for CLI frameworks to include completion stuff
Some cli:s have a cli-flag/command that will spit out a completion script for you
I think you may be referring to https://docs.rs/clap_complete/latest/clap_complete/
Time to make one for fish ig 
Yeah me too now I want one for fish !
would you mind adding a gleam-completions.plugin.zsh file to the repo?
(similar to how zsh-completions does it)
this would make it installable with the usual zsh plugin managers 👀
Additional completion definitions for Zsh. Contribute to zsh-users/zsh-completions development by creating an account on GitHub.
the plugin managers take care of downloading it and the .plugin.zsh tells zsh how and what to source / adds path vars n such
${0:A:h} in zsh-completion's version is just a funky pwd from what i can tell
So a plugin manager can download it from a git repo? How would one tell it to do that?
in my case id just add it right here
Done! Let me know if I messed something up
seems to work 
Nice!
i love that it just works with fzf-tab as well (this was to be expectedd but i still get excited every time it does)
(the run -m build is an auto suggestion)
Ah that's cool
thank you indeed 
There was a PR in 2023, might be time to revisit since clap is still being used

)