zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: RE: file-patterns problem
Date: Thu, 24 Feb 2000 12:49:07 +0300	[thread overview]
Message-ID: <001201bf7eac$644e7000$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <200002240904.KAA15316@beta.informatik.hu-berlin.de>

>
> First of all: if one wants to set a file-pattern explicitly one should
> use the tag one wants to set it for. Otherwise it will always be used,
> for all possible tags.
>
> Second: one only gets the extra (i.e. normally not tried) tags one
> explicitly selects. So:
>
>   zstyle ':completion:*:*:foo:*:globbed-files' file-patterns '*.yo'
>
> Makes only the globbed-files and the all-files tags be used. If one
> wants directories, one has to say that:
>
>   zstyle ':completion:*:*:foo:*:directories' file-patterns '*(-/)'
>
> This is a bit ugly. I /think/ I asked if we should make this different
> when I added the file-patterns style, but it may well be that I
> forgot. So: should we make the directories tag with its usual pattern
> be tried automatically if the user explicitly sets the file-patterns
> tag for globbed-files? Or should we do that only if the directories tag,
> file-patterns style is given, but allow an empty value to stand for
> `the normal pattern'?
>

In other words - setting styles for partucular tag has a side effect of
enabling this tag? I find it really confusing. Do not we have special tag to
enable/disable tags (ough :-) Hmm looks, like not. The closest is
tag-order - and if it gets slightly different name (without so much strngth
on ``order'') - it is quite usable to say, which tags and in which order.

In the case above - files and path_files should have default tags to try and
with default patterns. If you do not want to see all files - set tag-order
to the correct tags. If you wnat other patterns - set file-patterbs. If you
want only particular tags with particular patterns - set both.

/andrej


  reply	other threads:[~2000-02-24  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-24  9:04 Sven Wischnowsky
2000-02-24  9:49 ` Andrej Borsenkow [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-24 10:19 Sven Wischnowsky
2000-02-23 18:57 Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001201bf7eac$644e7000$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).