[texdoc] Almost ready for v3.0!

Denis Bitouzé dbitouze at wanadoo.fr
Wed May 23 13:45:27 CEST 2018


Le 23/05/18 à 19h32, Norbert Preining a écrit :

> On Wed, 23 May 2018, Denis Bitouzé wrote:
>> Another nice feature would be for `texdoc' to provide completion:
>> 
>> texdoc chem + TAB
>
> That is a feature of bash

Or zsh! :)

> (bash_completion). 

Ah, OK.

> One could generate with texdoc the respective bash_completion entries,
> but I am not sure you want 40000 entries in you bash environment.

So many? According to CTAN, there are "only" 5514 packages. The idea is
not to provide completion for all the documentation documents of all the
packages, but rather completion "only" for all packages (and
classes). For instance:

  ┌────
  │ $ texdoc chemschemex
  │  1 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/chemschemex.pdf
  │  2 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/C2H4.pdf
  │  3 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/CH2CH-R2.pdf
  │  4 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/R1-CHCH2.pdf
  │  5 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/R2-CHCH-R1.pdf
  │  6 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/RuCH-R1.pdf
  │  7 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/RuCH2.pdf
  │  8 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/cp.pdf
  │  9 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/maleimid.pdf
  │ 10 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/product.pdf
  │ 11 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/product_num.pdf
  │ 12 /usr/local/texlive/2018/texmf-dist/doc/latex/chemschemex/README
  └────

but:

  ┌────
  │ $ texdoc chem + TAB'
  └────

should provide only a single occurrence of `chemschemex':

  ┌────
  │ $ texdoc
  │ chembst chemcompounds chemcono chemexec chemformula chemgreek
  │ chemmacros chemnum chemschemex chemsec chemstyle
  └────
-- 
Denis



More information about the texdoc mailing list