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

Re: Binding Home and End



On Wed, 27 Jan 2010 18:58:43 +0200
"Nadav Har'El" <nyh@xxxxxxxxxxxxxxxxxxx> wrote:
> I wonder - shouldn't ZLE also switch to application mode and leave this
> mode when editing is complete (to run a command)?

I can't imagine changing the normal behaviour will lead to anything
other than chaos, but there is a simple way of making the shell do this
for you:

zle-line-init() { echoti smkx; }  
zle-line-finish() { echoti rmkx; }
zle -N zle-line-init
zle -N zle-line-finish

which seemed to do what I expected.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author