zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: PATCH: completion listing (was: zsh hangup with listpacked and Problem with zle completion listing function)
Date: Mon, 08 Jan 2001 16:49:44 +0000	[thread overview]
Message-ID: <Tc0a8890c50fbbc1f27@mailsweeper01.cambridgesiliconradio.com> (raw)
In-Reply-To: Your message of "Mon, 08 Jan 2001 16:22:52 +0100." <200101081522.QAA10124@beta.informatik.hu-berlin.de>

Sven wrote:
> Peter Stephenson wrote:
> > I have the following function set up as an ordinary zle widget, with zle
> > -N, and bound to ^D.  It's supposed to make sure that when I type ^D I
> > always get a freshly calculated list, so that I can list the contents of a
> > directory which appears with menu completion --- otherwise it will just
> > redraw the current menu list.  (Of course, what I *really* want is
> > something smarter: if a list is already displayed, assume I want it updated
> > based on what's currently on the command line, but I couldn't work out how
> > to do that.)
> 
> Hm. I don't exactly understand how this would differ from your
> version...?

If a list wasn't displayed, it should do what it currently does, displaying
the relevant list for the active completion.  It's extremely minor --- I
have autolist on, so I get the list willy-nilly.
 
> I can't reproduce this. I tried it with and without autolist and with
> and without _oldlist in the completer list. Even if the patch below
> fixes the main problem I'd like to be able to track this down.

It does fix the problem, thanks.  _oldlist was the reason I needed to hit
^D twice.  Setting the old-list style should fix this, although I haven't
worked out if that's going to make me cross somewhere else.  So at the
moment everything is now working.
 
The completers I had, by the way, were

zstyle ':completion:*' completer _oldlist _expand _complete _approximate

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


      reply	other threads:[~2001-01-08 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 15:22 Sven Wischnowsky
2001-01-08 16:49 ` Peter Stephenson [this message]

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=Tc0a8890c50fbbc1f27@mailsweeper01.cambridgesiliconradio.com \
    --to=pws@csr.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).