Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: help with _match, globcomplete etc.
- X-seq: zsh-workers 9740
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: help with _match, globcomplete etc.
- Date: Tue, 15 Feb 2000 11:09:18 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200002141303.OAA10037@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author