Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: configuration question
- X-seq: zsh-workers 7383
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: configuration question
- Date: Thu, 5 Aug 1999 16:00:55 +0000
- In-reply-to: <9908051407.AA36170@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9908051407.AA36170@xxxxxxxxxxxxxxxxx>
On Aug 5, 4:07pm, Peter Stephenson wrote:
} Subject: Re: configuration question
}
} Wim Yedema wrote:
} > I'd like replace self-insert with a function that automatically
} > does something like "history-beginning-search-backward"
}
} I got the following to work
A couple of minor adjustments:
predict-on() {
zle -N self-insert insert-and-predict
zle -N magic-space insert-and-predict
}
predict-off() {
zle -A .self-insert self-insert
zle -A .magic-space magic-space
}
The whole idea is actually pretty cool.
} It's interesting what happens if you get predict-off wrong.
I'll bet, especially considering that you did.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author