TeX-Live / texdoc

Find and view documentation in TeX Live
https://tug.org/texdoc/
GNU General Public License v3.0
47 stars 7 forks source link

display them all -> allow number #111

Open kberry opened 11 months ago

kberry commented 11 months ago

texdoc -l bibtex says 142 results. Display them all? (y/N). That's fine, but when I previously saw the whole list, I often already know which number I want. Thus it would be nice to allow typing a number to that question, not just y/n. Just a suggestion.

muzimuzhi commented 11 months ago

Seems it's controlled by goodness of each item in the list and config max_lines (default 20). https://github.com/TeX-Live/texdoc/blob/f2fb792397a375a2f287fc0ef6e49c11e7a5702e/script/texdoclib-view.tlu#L164-L179

Similarly, once I wanted sth like texdoc --number 2 bibtex which will directly open the second result of texdoc -l bibtex.

wtsnjp commented 11 months ago

For your information, we have another related plan #97.