Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Completion: Improve _man (3)



dana wrote on Fri, Jun 15, 2018 at 09:21:07 -0500:
> On 15 Jun 2018, at 09:05, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >Thanks for the quick turnaround.  With this patch, `man 3 utf<TAB>`,
> >`man 3per utf<TAB>`, and `man 3perll utf<TAB>` all complete to
> >`... utf8`.  That's correct for the first two but wrong for the last one:
> 
> Oops, i confused myself looking at the old one. Fixing that actually improves
> the partial matching a lot in general, thanks. Try this, if you don't mind.

Much better, thanks.

While here, I noticed this:

[[[
% zstyle \* group-name '' 
% zstyle \* format '> %d' 
% zstyle \* separate-sections true 
% man ut
> manual page, section 2 (system calls)
utime             utimensat
> manual page, section 3 (library functions)
utf8       utime
> manual page, section 7 (miscellanea)
utf-8        utf8         utime.h      utmpx.h
]]]

This lists utime(2), utime(3), utf8(3perl), utf8(7), and utime.h(7posix), among
others.  Should there be separate groups for each section, i.e., one group for
each of (2 3 3perl 7 7posix)?  (This is orthogonal to dana's patch.)

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author