[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] vi-mode: allow [count] on i/I/a/A commands

From: Chet Ramey
Subject: Re: [Bug-readline] vi-mode: allow [count] on i/I/a/A commands
Date: Mon, 1 Oct 2018 10:29:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 10/1/18 10:16 AM, Richard Todd wrote:
> On Mon, Oct 01, 2018 at 09:10:03AM -0400, Chet Ramey wrote:
>> `i' isn't listed as one of the commands that can take a [count] in the
>> POSIX description of shell command line editing. This sounds like another
>> candidate for an extended vi mode.
> I see from your other message that there is a POSIX section specifically
> for the shell's vi-mode, which I wasn't aware of.  Looking at that, I
> definitely agree with you that the changes I've been suggesting belong
> in an extended mode.  If you decide to create one, I'll be happy to
> resubmit the patches against it, if that is useful to you.

The bug you pointed out against the `a' command regarding the text it
saves for redoing needs to be fixed, though. I'll look at that today.
(The only issue is figuring out why insertion mode doesn't start an
undo group for both `i' and `a', as your patch adds.)

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]