#981301 elvish: please document where you want tab completion directives installed

#981301#5
Date:
2021-01-28 22:35:20 UTC
From:
To:
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!

#981301#10
Date:
2021-01-29 04:47:53 UTC
From:
To:
Hi,

It doesn't support global completion files yet. Author just says he will
consider this after 0.15.

#981301#15
Date:
2021-01-30 01:12:54 UTC
From:
To:
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,

#981301#20
Date:
2023-02-22 19:14:57 UTC
From:
To:
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?

#981301#25
Date:
2023-02-23 12:12:52 UTC
From:
To:
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.

#981301#30
Date:
2023-02-24 18:28:53 UTC
From:
To:
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.

#981301#35
Date:
2024-02-05 20:04:31 UTC
From:
To:
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

#981301#40
Date:
2025-02-05 15:32:59 UTC
From:
To:
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?