zsh-workers
 help / color / mirror / code / Atom feed
* Re: pws-11: what exactly is "default" tag?
@ 1999-12-09 12:53 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 1999-12-09 12:53 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> Getting my select/colors back :-) I was a bit confused. Doc states, that for
> default menu and list-colors I have to "set them for default tag". Now, the
> semantic of "default tag" is a bit different from "tag default" ... and playing
> with it (looking how I can set defaults for different styles):
> 
> list-colors requires you to set it for '*:default'
> menu happily accepts both '*' and '*:default'
> completer (e.g.) requires you to set it for '*'
> 
> This is realy a bit confusing ... is it possible use either '*' or '*:default'
> as default tag :-) in all places? And properly describe. what "default tag"
> actually means?

Err... `compstyle "*" list-colors ...' works, too. Of course. Because
`*' obviously matches anything `*:default' matches.

And note the difference between list-colors and menu on one side and
completer on the other. The first to are used to define behavior for
adding matches, there may be more than one value used, completer
controls the overall behavior, this can have only one value.

But then, I admit that I thought about this, too -- using a nice tag
to look up things like completer (and the _approximate styles like
max-errors, btw.). But somehow I think `default' would be a bad name
for that, just think:

  compstyle '*:default' completer ...

Sounds as if there were other `completer' styles used elsewhere,
doesn't it?

If anyone has an idea for a good name, please tell me (I once played
with `global' but somehow that didn't look really satisfying either).


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pws-11: what exactly is "default" tag?
@ 1999-12-09 13:12 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 1999-12-09 13:12 UTC (permalink / raw)
  To: zsh-workers


I wrote:

> But then, I admit that I thought about this, too -- using a nice tag
> to look up things like completer (and the _approximate styles like
> max-errors, btw.). But somehow I think `default' would be a bad name
> for that, just think:
> 
>   compstyle '*:default' completer ...
> 
> Sounds as if there were other `completer' styles used elsewhere,
> doesn't it?

I forgot to give the other example which probably makes that even
clearer:

  compstyle ':predict:default' completer ...

or

  compstyle ':predict:global' completer ...

just look wrong.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* pws-11: what exactly is "default" tag?
@ 1999-12-09 12:11 Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 1999-12-09 12:11 UTC (permalink / raw)
  To: ZSH workers mailing list

Getting my select/colors back :-) I was a bit confused. Doc states, that for
default menu and list-colors I have to "set them for default tag". Now, the
semantic of "default tag" is a bit different from "tag default" ... and playing
with it (looking how I can set defaults for different styles):

list-colors requires you to set it for '*:default'
menu happily accepts both '*' and '*:default'
completer (e.g.) requires you to set it for '*'

This is realy a bit confusing ... is it possible use either '*' or '*:default'
as default tag :-) in all places? And properly describe. what "default tag"
actually means?

("Requires to set" means, that if you set it for something different it won't be
accepted as default value)

/abdrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-09 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-09 12:53 pws-11: what exactly is "default" tag? Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
1999-12-09 13:12 Sven Wischnowsky
1999-12-09 12:11 Andrej Borsenkow

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).