zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: RFD: Zsh styles and OOP ...
Date: Mon, 14 Feb 2000 13:50:06 +0300	[thread overview]
Message-ID: <000101bf76d9$415ce110$21c9ca95@mow.siemens.ru> (raw)

Unfortunately, no ready-for-implementation ideas ... just some speculations.

To put in general way, styles are used to define properties of objects. Even
if we speak only about completion, there are already more than one sort
(type? class?) of objects there.

1. list of generated matches
2. completion functions (every functions - not just completers)
3. completion system widgets
4. completion system as whole

Each of these classes really has it's own hierarchy (if at all) and should
reasonably have it's own namespace.

Unfortunately, the way contexts are defined currently makes no difference
between different objects putting all of them in single namespace (that
actually is appropriate only for matches list). This gives way to confusing
settings like

zstyle :completion:* completers _complete

that implies, that you can define different copmpleters for diff and gzip,
while completers is actually a property of completion widget(s)

Another example is setting of ps arguments, hosts dastabase, rgb database
and such. I can hardly imagine setup, where kill and killall would use
different settings for ps arguments; or different X commands would use
different rgb or font database. Again, these styles are actually property of
completion system as a whole or at least some helper functions. And in any
case, they are independent of current command, argument position etc.

I believe, it would be of real help to developers as well to

- clear define what sorts of objects exist
- what properties do they have
- use context names, that refelect actual object hierarchy without need of
dummy placeholders or fake "match it all" entries

It would of much help to users if they had context/tags/styles descriprion
divided into subgroups for every object type instead of current long list.

Not sure how interesting it is ...

/andrej


             reply	other threads:[~2000-02-14 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-14 10:50 Andrej Borsenkow [this message]
2000-02-14 19:13 ` Peter Stephenson
2000-02-15 10:10 Sven Wischnowsky
2000-02-15 10:39 ` Andrej Borsenkow
2000-02-15 12:08 Sven Wischnowsky

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='000101bf76d9$415ce110$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --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).