1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00
Commit graph

30 commits

Author SHA1 Message Date
Bart Schaefer
1e52cd968d 50278: use man -w in preference to manpath; fix caching and precedence of -M 2022-05-22 15:50:45 -07:00
taiyu
3714ee0b58 github #68: support section suffix completion for man pages
Support prepend and suffix values for insert-sections
Add values for insert-sections for zstyle completion
2021-02-13 01:01:40 +01:00
dana
0d3a62d931 45226: _man: Improve completion of file paths 2020-01-05 12:13:01 -06:00
dana
7bf4f03eb3 unposted: Fix --ascii typo in _man 2018-08-23 18:14:02 -05:00
dana
0cac4b63e0 43024: Improve _man section-name matching 2018-06-15 22:03:30 -05:00
dana
684db0f9fe 42983: Address misc. feedback re: _man 2018-06-11 16:52:38 -05:00
dana
c89d9cc820 42977: Complete options to major man variants, otherwise improve especially section matching 2018-06-10 22:13:48 +02:00
Daniel Shahaf
385cb9b9f0 40264: _man: Complete all sections after '-a'.
Followup to 37634.
2017-01-05 15:58:17 +00:00
Danek Duvall
999e1ac64e 39194: _man (Solaris): Ignore man-index. Support multiple sections in the -s flag's argument. 2016-09-07 23:15:46 +00:00
Daniel Shahaf
dfae92c483 38996: _man: Support _correct_word.
Since compfiles is undocumented, avoid its use altogether, replacing it by
a construct that blackbox analysis suggests to be equivalent.

The compfiles call being removed effected the following change (when
completing «man -S 8:1 getc<TAB>»):

    BEFORE THE CALL:
        typeset -a pages=( /home/daniel/prefix/zsh/share/man/man1/
                           /usr/share/man/man8/
                           /usr/share/man/man1/ )
    AFTER THE CALL:
        typeset -a pages=( '/home/daniel/prefix/zsh/share/man/man1/getc*(8|1)*'
                           '/usr/share/man/man8/getc*(8|1)*'
                           '/usr/share/man/man1/getc*(8|1)*' )

This patch effects the same transformation (modulo doubling the final slash).

Any -M parameter will be passed to compadd.
2016-08-05 12:37:30 +00:00
Daniel Shahaf
71f1653020 38994: _man: Fix two bugs when completing manpage filenames in separate-sections mode.
- No longer glob all files (the (-g)-less _path_files was virtually always called,
  by at least one of the multiple calls to _man_pages).

- Actually separate sections (by propagating $expl).
2016-08-05 12:37:29 +00:00
Daniel Shahaf
a5a9fc7a5f 38993: _man: Drop (b): it's incorrect when $sect contains '|'. 2016-08-05 12:37:27 +00:00
Daniel Shahaf
f70615d878 38981: _man: Followup to 37634: unbreak OpenBSD 'man 3p' and Linux $MANSECT.
The breakage was reported in 38516.
2016-08-01 21:15:47 +00:00
Daniel Shahaf
896f43c72b 37634: _man: Support subsection names such as '3p'. 2016-01-18 02:40:02 +00:00
Daniel Shahaf
35b8e8794f 37634: _man: Disentangle a local variable that had two distinct semantics. No functional change 2016-01-18 02:40:01 +00:00
Peter Stephenson
5554cf8244 users/18860: man -M overrides manpath 2014-05-29 21:39:02 +01:00
Peter Stephenson
e5ddd5b62f 28468: allow man page completion for files when / is present 2010-12-03 17:24:40 +00:00
Peter Stephenson
27a317b168 not quite posted, exactly: improvement to previous _man change 2010-10-21 19:29:09 +00:00
Peter Stephenson
f2081c6bc3 Silas Silva: completion support for man -M 2010-10-21 19:15:29 +00:00
Andrey Borzenkov
486c21ad3a unposted: support lzma compression of man pages used in Mandriva 2009-06-28 17:19:59 +00:00
Peter Stephenson
9961acc566 Alexey I. Froloff: 26830: stripping of manual page suffixes in completion 2009-04-16 10:03:25 +00:00
Clint Adams
ef570806aa users/10282: complete associated sections with man page names. 2006-06-09 19:55:48 +00:00
Peter Stephenson
bb729797d3 22237: location of man pages on NetBSD 2006-02-12 20:31:22 +00:00
Clint Adams
b9d42d6a59 21565: better handle uncompresed manpages with .[0-9] in their names. 2005-08-15 17:11:17 +00:00
Clint Adams
5441412544 17266: check manpath even when $MANPATH is set. 2002-05-31 05:02:38 +00:00
Sven Wischnowsky
5659f442c0 allow manual pages to be shown separated by section with new separate-sections style (16426) 2002-01-10 11:00:05 +00:00
Bart Schaefer
a90502aeb0 Better handling of manual section numbers. 2001-08-21 18:06:24 +00:00
Sven Wischnowsky
e988866bda remove not only numeric suffixes, but also `.n' and the like (15352) 2001-07-10 08:10:24 +00:00
Sven Wischnowsky
7571f04c03 improve pattern matching to make match specs work for manual page completion (15029) 2001-06-21 12:53:55 +00:00
Sven Wischnowsky
eb1ff29f2c moved from Completion/User/_man 2001-04-02 11:57:04 +00:00