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

Re: [PATCH] Improve _man file-path completion



On Fri, Jan 3, 2020 at 5:16 PM dana <dana@xxxxxxx> wrote:
>
> 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.

Yes, this was a design decision.  As I recall the conversation ended
up with something along the lines of "if the user has completed all
the way down the directory hierarchy, he probably expects to see
something at the end, rather than nothing."

I suspect this does make it somewhat more difficult than it should be
to create zstyles that display files and directories in separate
groups in a completion listing.



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