[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] make ';' after 't' work in vi-mode
From: |
Richard Todd |
Subject: |
Re: [Bug-readline] make ';' after 't' work in vi-mode |
Date: |
Fri, 28 Sep 2018 08:28:51 +0000 |
On Thu, Sep 27, 2018 at 02:04:13PM -0400, Chet Ramey wrote:
>
> I wonder if an `extended-vi' option is the way to handle this.
Would you want to start accumulating other vim enhancements under the
`extended-vi' option? If not, I don't think the change to ';' is important
enough for a named option.
As an aside:
If you _would_ want more extensions, I think the very popular vim text-object
commands (e.g., ci" to change the text inside the surrounding quotes) would be
the low-hanging fruit. Skimming through your codebase, I think they would be
pretty similar to the special-cases in 'rl_domove_read_callback()' for
dd/cc/yy: they would modify both rl_mark and rl_point prior to dispatching a
d/c/y command. A little more state would need to be saved to support '.'-redo.