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

Re: configuration question



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