zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re:  zsh-3.1.2-zefram3
Date: Tue, 13 Jan 1998 12:56:43 +0100 (MET)	[thread overview]
Message-ID: <199801131156.MAA00827@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Andrew Main's message of Mon, 12 Jan 1998 11:27:05 GMT


Andrew Main wrote:

>...
>
> N  3503 wischnow lots of nifty completion options
> 	This I did not include.  AUTO_GLOB_COMPLETE really has very
> 	little to do with GLOB_COMPLETE -- all it does is complete from
> 	the beginning of the word as well as the end.  This is the sort
> 	of thing that multicomp is for.  COMPLETE_FOLD_CASE I would
> 	have used had it been separate from the rest of the patch; it
> 	does something useful that can't easily be done in user space.
> 	The other compctl options (-. and -:) I do not like.  They seem
> 	to require an awful lot of code for something that, again,
> 	should really be part of a completion function.
> 

I'm all for doing this in shell functions, but zsh isn't strong enough
for that (yet). The problem is that things like multicomp only work
with menu-completion.

Question is, what excatly do we need to allow building arbitrary
completion lists in shell functions and have the code make them
conveniently accessible with normal completion. Maybe something like
`replace the current word with the prefix <a> and the suffix <b>,
placing the cursor between them'. But we would also need to be able to
return the whole completion list for automenu. Taking multicomp
(i.e. path) completion as an example that would mean to present either
the list of full paths or only the list of ambiguous path name
components.
Thinking about the latter leads to the suggestion that such functions
may return: `we split the current word into <prefix><ambig><suffix>
at positions <p0> and <p1> and want <prefix> be replaced by <a>,
suffix by <b>, and for <ambig> we offer the list of possible
completions in $reply, now present that to the user'. But that sounds
pretty complex (in fact this is near to what the compctl code does
internally), so does anyone see a simpler solution?


Bye
 Sven


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


             reply	other threads:[~1998-01-13 12:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-13 11:56 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-01-20  0:46 zsh-3.1.2-zefram3 Gene Cohler
1998-01-13 11:59 zsh-3.1.2-zefram3 Bruce Stephens
1998-01-13 12:24 ` zsh-3.1.2-zefram3 Andrew Main
1998-01-13 12:44   ` zsh-3.1.2-zefram3 Bruce Stephens
1998-01-13 11:44 zsh-3.1.2-zefram3 Bruce Stephens
1998-01-13 12:19 ` zsh-3.1.2-zefram3 Andrew Main
1998-01-13 12:49   ` zsh-3.1.2-zefram3 Bruce Stephens
1998-01-13 13:36   ` zsh-3.1.2-zefram3 Peter Stephenson
1998-01-13 15:04     ` zsh-3.1.2-zefram3 Bruce Stephens
1998-01-12 11:27 zsh-3.1.2-zefram3 Andrew Main
1998-01-18 15:14 ` zsh-3.1.2-zefram3 Anthony Heading
1998-01-18 17:38   ` zsh-3.1.2-zefram3 Bart Schaefer
1998-01-19  8:58     ` zsh-3.1.2-zefram3 Peter Stephenson
1998-01-21 18:37     ` zsh-3.1.2-zefram3 Anthony Heading

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=199801131156.MAA00827@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).