zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-workers@sunsite.auc.dk>
Subject: Re: Completing parameter names that have yet to be set.
Date: Sun, 13 Aug 2000 22:51:43 -0700 (PDT)	[thread overview]
Message-ID: <20000814055143.26862.qmail@web1104.mail.yahoo.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2452 bytes --]

I was unaware of the "fake" style.  I just looked at _parameter before
posting. It seems that "fake" covers the functionality I was thinking
about for files.  It seems that _parameters also needs the ability to
fake values as my copy does.  There probably are other places where fake
could be used.

It does seem that if the format is different, the style name should be
different.  Though I do like the idea of the "fake-" prefix, being used
with the styles names that provide additional values to the values found
via the normal mechanism.  So maybe a "fake-parameters" style to allow
for parameters that haven't been set.

It seems whatever format is used for "fake-parameters", it should allow
the user to specify descriptions.  Also type information would be nice.


One thing I really like about the fake style used for files is that
it provides a mechanism for context based on the directory of the
completion.  I've wondered if there is a way to generalize this so that
other styles could be based on the directory of completion (or other
information).

The completion system has so many styles that allow the user to tweak
completion.  All these different styles provide hooks to the various
tools of the completion.  Different situations require different tools.

For example, in my source code tree I might want to look at ".[ch]"
files first, but in logs directory I want to look ".{log,out}" files
first.  I can use tags, but I still have to list tags for ".[ch]" and
for the ".{logs,out}" files. And if both types of directories contain
files that match both tags, there will be at least one directory where I
always get the incorrect completion the first time.

It seems that the ability to configure styles based on additional
information not found in the context requires the ability to treat a
group of styles as a single whole, and quickly set/unset a group of
styles.  I vaguely remember something like this was talked about, but
don't remember what was decided.

This sort of seems similar to the keymaps. We want to quickly set a
group of keymaps at once. The ability to place a bunch of key mappings
in the name space of a keymap, seems like what we want to do with
styles.  Place a bunch of them in a name space, and then provide a list
of name spaces to search like a path.

-FR.


__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/


             reply	other threads:[~2000-08-14  5:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-14  5:51 Felix Rosencrantz [this message]
2000-08-14  7:15 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-09-06  7:41 Sven Wischnowsky
2000-09-06  7:00 Felix Rosencrantz
2000-08-14  8:03 Sven Wischnowsky
2000-08-14  8:01 Sven Wischnowsky
2000-08-11  7:54 Sven Wischnowsky
2000-08-11  6:30 Felix Rosencrantz

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=20000814055143.26862.qmail@web1104.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --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).