From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: Re: help with _match, globcomplete etc.
Date: Tue, 15 Feb 2000 11:09:18 +0000 [thread overview]
Message-ID: <38A933DE.E0ECB798@u.genie.co.uk> (raw)
In-Reply-To: <200002141303.OAA10037@beta.informatik.hu-berlin.de>
Sven Wischnowsky wrote:
> You can bind expand-word to ^X$.
True though I was mainly after not having variable expansion ever when I
press tab.
Incidentally, I tried creating:
expand-variables() {
setopt localoptions noglob
zle expand-word
}
zle -N expand-variables
so that ^X$ wouldn't also glob complete but it comes back with any glob
characters quoted. It seems that expand-word always does this when
noglob is set. Surely this isn't right? In the process, I also noticed
that the quoting can go slightly wrong if there are opened but not
closed braces: $code[ai]/{a,b<Ctrl-X,*> comes back with a quoted '[' in
the middle.
> Have you had a look at the _expand completer? And the _expand_word
I have now but I can't get it to work. I've probably missed something
but this won't work:
zsh -f
autoload -U compinit
compinit
bindkey '^I' complete-word
zstyle -d
zstyle ':completion:*::::' completer _expand
echo *<tab>
I was expecting the last line to glob expand (as if tab was still bound
to expand-or-complete) but all I can get is a beep. I've tried changing
the related styles without any effect.
Thanks
Oliver
next prev parent reply other threads:[~2000-02-15 11:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-14 13:03 help with _match, globcomplete etc. (with PATCH) Sven Wischnowsky
2000-02-15 11:09 ` Oliver Kiddle [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-02-15 16:08 help with _match, globcomplete etc Sven Wischnowsky
2000-02-15 11:34 Sven Wischnowsky
2000-02-08 14:28 Problem with completion after a variable with globcomplete Sven Wischnowsky
2000-02-14 12:23 ` help with _match, globcomplete etc 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=38A933DE.E0ECB798@u.genie.co.uk \
--to=opk@u.genie.co.uk \
--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).