Autocomplete script for Buku does not work for Fish shell
gimbear opened this issue · 3 comments
I'm trying to use the provided autocomplete script for Fish shell, but it does not seem to be working.
After adding the script to ~/.config/fish/completions/buku.fish, reloading the configuration, and typing the buku command and pressing Tab, the autocomplete suggestions should appear, but it does not trigger correctly.
I am running this on MacOS and installed buku with brew.
Thanks
…You could try checking env variables (echo $XDG_CONFIG_HOME
) and evaluating the script manually (source ~/.config/fish/completions/buku.fish
) to check if it's actually being evaluated and ensure there's no errors. (If completions start working after manual evaluation, it would likely mean that it's not being evaluated during init.)
As far as I can tell it appears to work fine on Linux:
(…In fact, after a bit of digging I found out I have an additional – autogenerated – fallback completion file, apparently produced from parsing the buku manfile during fish install 😅)
@gimbear please leave a comment regarding the reason why you marked this issue as completed. (I.e. if you figured out what was causing it, describe your findings for future reference – in case anyone else has a similar problem.)
Yeah, sorry.
The auto-completion triggers on buku space hyphen ("buku -") and not on buku space ("buku "). So the script works perfectly fine for me!