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

Re: [PATCH] Improve _man file-path completion



dana wrote on Fri, Jan 03, 2020 at 19:17:56 -0600:
> How about something like the following, then?

+1, thanks.

> On 3 Jan 2020, at 18:39, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > Aside:
> >
> >    % compdef _f f
> >    % _f() _files -/
> >    % f Util/<TAB>
> > .
> > offers files, rather than nothing.  Bug?
> 
> I seem to recall this being discussed before, and it isn't really a bug, but
> we could change it if we decided to. Someone was complaining about it on IRC
> just the other day. I think we'd simply need to remove *:all-files from
> pats=(...)

Well, it seems like a bug to me, given that -/ "specifies that only directories
should be completed".  If the completion function had wanted files to be
offered, it wouldn't have passed -/ in the first place.

*shrug*



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