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

Add fish completion script #6

Merged
merged 6 commits into from
Aug 14, 2021
Merged

Add fish completion script #6

merged 6 commits into from
Aug 14, 2021

Conversation

dwhinham
Copy link
Contributor

render1628813094927

@gmcn42
Copy link
Owner

gmcn42 commented Aug 13, 2021

Haha, from what I see in your animation fish definitely wins in the eye-candy department! Thanks for the script!

Now that we're at it, I decided to try a zsh-specific script as well, works fine:

zsh_completion-opt
zsh_completion

It has also a description feature like fish. Comparing the scripts though, I think the fish built-ins are way more elegant and readable.

Regarding the PR: How about having a directory linux_src/completion_scripts with mt32-pi-ctl.{bash|zsh|fish} inside?
I also want to move the installation instructions away from the option descriptions in README.md

If that's alright with you, I'll just push the changes to this branch and merge everything when it's done. 👍

@dwhinham
Copy link
Contributor Author

dwhinham commented Aug 14, 2021

Excellent! I did wonder if zsh was the next step 🙂

Yes - one directory for all the scripts does make a lot of sense. Feel free to add whatever you like or change things as you see fit! 😀

@gmcn42 gmcn42 merged commit 7cb4c42 into gmcn42:main Aug 14, 2021
@gmcn42
Copy link
Owner

gmcn42 commented Aug 14, 2021

All done! Made a 1.0.1a release containing the new scripts.

@dwhinham
Copy link
Contributor Author

Great work!

I've updated the AUR package for Arch and all scripts are now installed to their respective locations. 🙂

@dwhinham dwhinham deleted the fish-completion branch August 14, 2021 21:18
@gmcn42
Copy link
Owner

gmcn42 commented Aug 15, 2021

I've updated the AUR package for Arch and all scripts are now installed to their respective locations.

Small observation regarding the PKGBUILD: Not sure if it's applicable to Arch but on Ubuntu the correct non-/usr/local-path for third-party zsh-completions seems to be /usr/share/zsh/vendor-completions. The zsh/site-functions dir only exists in fpath for /usr/local/share prefix, not for /usr/share.

@dwhinham
Copy link
Contributor Author

dwhinham commented Aug 15, 2021

Yeah, I caught that - I just looked to see where other packages on my system were putting their function files and went with that (/usr/share/zsh/site-functions).

/usr/local/share/zsh/site-functions is in fpath and works, but using that location on Arch doesn't seem canonical (nothing I've installed is using it).

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

Successfully merging this pull request may close these issues.

2 participants