* MH completion
@ 1999-09-07 12:57 Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 1999-09-07 12:57 UTC (permalink / raw)
To: Zsh hackers list
I was trying to rewrite MH completion to use _arguments; you can run
`command -help' and make the argument list up from the output as you
go along. But it looks like _arguments can't deal with the +folder
syntax, i.e. that anything beginning with a + needs to be completed
specially by a separate function/state. Ideas?
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MH completion
@ 1999-09-07 13:11 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-09-07 13:11 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson wrote:
> I was trying to rewrite MH completion to use _arguments; you can run
> `command -help' and make the argument list up from the output as you
> go along. But it looks like _arguments can't deal with the +folder
> syntax, i.e. that anything beginning with a + needs to be completed
> specially by a separate function/state. Ideas?
It seems like I have the manuals for `mh' here, but not the binaries,
so I can't help much, I fear.
And I can only think of 1) first testing for `[[ $PREFIX = +* ]]' and
calling `_arguments' in the else branch or 2) let `_arguments' set a
certain state for those places where +folder is valid and handle that
after return from `_arguments', testing if the word starts with a `+',
complete folders then and otherwise complete the things that are
allowed there, too (if any).
(I don't know `mh', so I can't say if one of these is possible/correct.)
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-09-07 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-07 12:57 MH completion Peter Stephenson
1999-09-07 13:11 Sven Wischnowsky
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).