Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Expanding global aliases on key press



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