[texdoc] Almost ready for v3.0!

Reinhard Kotucha reinhard.kotucha at web.de
Sun Jun 3 03:39:19 CEST 2018

On 2018-06-01 at 09:41:47 +0900, Norbert Preining wrote:

 > Hi Reinhard,
 > >   complete -W "$(awk '/^name/ {print $2}' $(kpsewhich -var-value TEXMFROOT)/tlpkg/texlive.tlpdb)" texdoc
 > Yeah, the awk trick is good, only that I am not good in awk.

Hi Norbert,
I'm not familiar with awk either.
 > BUT, you lost the part
 >   grep -v '\.'
 > which is necessary (well, not strictly, but for correctness) of
 > filtering out those lines of 
 >   packagename.architecture

Thank you for the correction.

 > It pissed me off quite a lot that for some time file name
 > completion was disabled for some commands, etc etc.

My experience is quite positive and I can't live without completion

 > Unfortunately we don't ship tlpdb in Debian by now ;-)

No need to ship tlpdb.  The maintaner (probably you) has to provide a
file containing a list of completions for each Debian TeX package.

Completions can then be activated with

  complete -W "$(cat /path/to/debian-texdoc-completions/*)"

So tlpdb is not needed at runtime.

Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de

More information about the texdoc mailing list