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

Re: _files vs _path_files discussion (old thread)



Bart Schaefer (schaefer@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> On Mar 11, 10:22pm, Adam Spiers wrote:
> } Subject: Re: _files vs _path_files discussion (old thread)
> }
> } > > A second issue is whether, if you find target files in the current
> } > > directory, you might still want to complete directories.
> } 
> } Does the new zstyle stuff now provide some kind of configurability to
> } solve this issue?
> 
> Yes, it's the tag-order style.

Ah, so I was right after all.

> By putting all the tags in the same argument, they're all treated as
> equal for purposes of completions.  You could also do
> 
> zstyle ':completion::complete:tar::' \
> 	tag-order 'globbed-files directories' all-files

That's exactly what I'd tried, with once difference; as I mentioned, I
want this behaviour everywhere, not just for tar, so I'd tried:

zstyle ':completion::complete:*' \
  tag-order 'globbed-files directories' all-files

However, neither your version nor mine seem to work.  Maybe I'm just
missing a bugfix because I'm behind on patches.

Adam



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