zsh-workers
 help / color / mirror / code / Atom feed
* comments in completion
@ 1997-11-16 15:44 Stefan Monnier
  1997-11-16 17:26 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 1997-11-16 15:44 UTC (permalink / raw)
  To: zsh-workers


A few months ago, there was a thread about programming completion for jobs.
For such a use, listing the available job numbers isn't quite what you want
because it's not very informative, so ech job number was annotated with its
corresponding command line. The annotation was originally done with '#' which
only works if you allow comments on the command line, so another suggestion was
done, using ";:", which mostly works just as well (except when you have ';' or
some such characters in the annotation, of course).
Another limitation of those two alternatives is that the annotation
terminates the command, so that it can't be used to do "kill %bla %bli".

What we really want is a way to put annotations that are understood by the
completion mechanism, so that they are printed when listing alternatives, but
they are not added to the command line.

This would come in handy for all completion of numbers like job numbers,
process ids, ...
And it would also be handy in order to provide online help for option flags,
like:

        > grep -[TAB]
        i - case insensitive
        n - print line numbers
        C - print surrounding context
        ...
        > grep -

I'm currently using 3.0.5 and there is no such thing in there, so is that
supposed to be coming up for zsh-3.2 or not yet ?


        Stefan


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

end of thread, other threads:[~1997-11-17 18:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-16 15:44 comments in completion Stefan Monnier
1997-11-16 17:26 ` Bart Schaefer
1997-11-17 13:54   ` Bruce Stephens
1997-11-17 15:45     ` Bart Schaefer
1997-11-17 16:26       ` Bruce Stephens
1997-11-17 17:13         ` Bart Schaefer

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