Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Binding Home and End
- X-seq: zsh-users 14750
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Binding Home and End
- Date: Thu, 28 Jan 2010 21:33:54 +0000
- In-reply-to: <20100127165843.GA4832@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100127165843.GA4832@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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