From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Cc: Matthias Kopfermann <matthias@kopfermann.org>
Subject: Re: menuselect and history
Date: Mon, 19 Apr 2004 19:20:11 +0200 [thread overview]
Message-ID: <7855.1082395211@trentino.logica.co.uk> (raw)
In-Reply-To: <040419092341.ZM10180@candle.brasslantern.com>
[redirected to -workers]
Bart wrote:
> On Apr 19, 11:52am, Matthias Kopfermann wrote:
> >
> > i just wondered whether it wouldn't be very cool if menuselect was
> > useable with historylines.
>
> --- 8< --- snip --- 8< ---
> #compdef -k menu-select ^X:
Very nice.
> emulate -L zsh
> zmodload -i zsh/parameter || return 1
I would tend to be inclined to use _generic to avoid needing such setup
code. Also makes it a lot more configurable. Trouble is, that you need
to manually define:
zle -C history-lines menu-complete _generic
zstyle ':completion:history-lines::::' completer _history_lines
bindkey '^X:' history-lines
I wonder if we should make #compdef -k, make widgets go through
_generic somehow. It isn't ideal that with #compdef -k, the function is
effectively operating outside of compsys, using raw compwid.
Oliver
next parent reply other threads:[~2004-04-19 17:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040419095235.GA1285@kopfermann.org>
[not found] ` <040419092341.ZM10180@candle.brasslantern.com>
2004-04-19 17:20 ` Oliver Kiddle [this message]
2004-04-19 20:14 ` Bart Schaefer
2004-04-20 13:17 ` Oliver Kiddle
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=7855.1082395211@trentino.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=matthias@kopfermann.org \
--cc=zsh-workers@sunsite.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).