Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Expanding global aliases on key press
- X-seq: zsh-users 13877
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Expanding global aliases on key press
- Date: Tue, 24 Feb 2009 20:03:19 -0800
- In-reply-to: <237967ef0902241753q12de7bbdj238d4d6b33707805@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <go20an$4p6$1@xxxxxxxxxxxxx> <237967ef0902241753q12de7bbdj238d4d6b33707805@xxxxxxxxxxxxxx>
On Feb 25, 2:53am, Mikael Magnusson wrote:
}
} This seems much simpler:
} global-alias-space () { zle _expand_alias; zle .self-insert }
} zle -N global-alias-space
} bindkey ' ' global-alias-space
} zstyle :completion:\* regular false # I can't figure out how to specify this more exactly
Normally the context would be :completion:expand-alias-word:::: but
because you're invoking a completion widget from inside an ordinary
widget the usual context setup is lost and you get just :completion::
instead.
Better might be
bindkey -s " " '^Xa^V '
to invoke _expand_alias via its intended completion widget binding.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author