Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Binding Home and End
- X-seq: zsh-users 14754
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Binding Home and End
- Date: Fri, 29 Jan 2010 22:51:11 +0100
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+mKTN2QTaiu8AUuO7zPbT4HE9rzpw5OtPXV01uy/OJc=; b=merdErAh+oNE/vDuxsn/UFAIK6ehflZfJ45wIVcOG+6Rc2GZlgkFJAdKnHbwCty8on 73YCpnyv33+J2PmB4FKX+aexiODmWR2ls+qXzLdcNZq+2UEe3wFLtHKR2qNprnDrNjKW rxixlIwy4hGhFK/CDDVeSqHj+KdmzSARRJSow=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nUoFx6fPZgm3tk/SvTYMyXqWlkC8/E0crZKXQUlNJOoT5Erwk9u6p0pjypHcju8d5x zM7MU72wwB1a0hSnsbDzQtOqYFe1OOCvd0ln6TxMhB6liFNjytWBFZt3LrxXn8LX2V2N Say4V7dImsEzpOY+yRgzBReP5tGoW/Peqq3mk=
- In-reply-to: <87mxzwsi54.fsf@xxxxxxxxxxxxxxxxxxxxxx>
- 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> <20100128213354.0dd08dd2@pws-pc> <87mxzwsi54.fsf@xxxxxxxxxxxxxxxxxxxxxx>
On 29 January 2010 22:41, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Peter Stephenson wrote:
>> 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.
>
> Any reason why this would "lead to anything other than chaos"? I think
> this is the correct way to do this. Without it, relying on information
> from terminfo to bind keys cannot work too well.
>
> Is there any potential part of the shell that could break if what the
> above functions did were the default behaviour?
I imagine it would at least break lots of keybinds for people who don't use
terminfo.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author