Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sticky-note and zle bindings
- X-seq: zsh-users 12443
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: sticky-note and zle bindings
- Date: Wed, 16 Jan 2008 07:59:15 -0800
- In-reply-to: <20080116131048.GC16058@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080104105900.37a87f7e@news01> <237967ef0801040304h494987bv939bf6ff9541123f@xxxxxxxxxxxxxx> <477E177A.3060303@xxxxxxxxxxxxx> <Xns9A20C0F173D23zzappergmailcom@xxxxxxxxxxxx> <080113000048.ZM15017@xxxxxxxxxxxxxxxxxxxxxx> <20080116131048.GC16058@xxxxxxxxx>
On Jan 16, 2:10pm, Andy Spiegl wrote:
}
} But how can I bind "sticky-note -l" etc. to a key?
Wrapper widget. Here's a function for one that might be useful, cribbed
from the top part of sticky-note:
#autoload
if [[ "$CONTEXT" = (cont|select|vared) ]]
then
zle -M "No $WIDGET during ${${(z)PREBUFFER}[1]:-$CONTEXT}, sorry"
zle .beep
else
zle .push-line
BUFFER="sticky-note -l"
zle .accept-line
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author