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

Re: PATCH: Re: tag-order func()



Bart Schaefer wrote:

> On Oct 12, 10:22am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> } 
> } > There's also the issue that I raised in zsh-users/3421 about how very
> } > difficult it is to return a glob pattern via the `reply' array from
> } > a style defined with zstyle -e.
> } 
> } Any option setting that caused your problems?
> 
> Try using 'zstyle -e' to put glob patterns in $reply in a context where
> they will actually later be used as glob patterns, such as in the
> file-patterns style.  The problem isn't that zstyle -e can't return
> them, but that it returns them incorrectly metafied (I think).

I tried:

  zstyle -e ':completion:*:*:foo:*' file-patterns \
      'reply=( "*.h:header:header" )'

and (from that old message, only slightly changed):

  zstyle -e ':completion:*:*:foo:*' file-patterns \
      '[[ $PREFIX == /usr/[^/]# ]] && reply=( "*(@)" )'

And it both works without problems for me.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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