- Package:
- src:elvish
- Source:
- elvish
- Submitter:
- Daniel Kahn Gillmor
- Date:
- 2025-02-05 15:36:05 UTC
- Severity:
- normal
I'm packaging a few rust binaries built using the "clap" crate, which auto-generates completion files for bash, fish, zsh, elvish, and powershell. I know how to ship the bash, fish, and zsh tab completion directives. But i don't know how to ship the elvish tab completion directives, or how to test that they work as expected. i'm including an example sq.elv that is produced by the rust-sequoia-sq package when it's built, for reference. It would be great if we could document in the elvish source package debian/ directory at least (or even better, in the binary package, in /usr/share/doc/elvish). If it's already documented someplace and i'm just unaware, feel free to close this report with a pointer to the right location! Thanks for maintaining elvish in debian!
Hi, It doesn't support global completion files yet. Author just says he will consider this after 0.15.
OK, thanks for the heads-up! When you know where the global completion files are likely to be looked for (even if the upstream version is not released yet), please follow up on this ticket. That way, we can ship the files in the right place in debian, and when elvish gains that capability, there will already be some completion files available. (also, if there's a known place to ship .elv files, then elvish users in the meantime can copy them into wherever their local completion files are supposed to go, right?) All the best,
Hi there! elvish is now several versions past 0.15. any ideas where to put tab completion files so that elvish can pick them up automatically?
Hi, On Thu, Feb 23, 2023 at 3:18 AM Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote: There is indeed something new landed in recent versions. https://elv.sh/ref/command.html#module-search-directories It now supports searching global modules in /usr/share/elvish/lib. However as the directory name shows, it's not meant for autocompletion scripts. After discussion with upstream, I think it's better to keep the status quo. We can see if a more sensible place that upstream will use in next debian release cycle.
thanks for looking into this and following up! let's keep this open and hopefully we can get it sorted out in a future release. I'd love to ship tab completions for Sequoia's sq, sqv, and sqop to make those tools more intuitive for elvish users.
I just ran into the same problem when trying to determine where to place the tab completions for Sequoia's gpg-sq and gpgv-sq //Alex
Hi Shengjing Zhu-- It's now been four years(!) since i first asked this question -- has there been any progress in figuring out where/how to ship elvish tab completion directives so that they'll be automatically usable by anyone using elvish on Debian?