binding to "cp" without breaking "c"
Jason Miller
jason at milr.com
Wed Jun 18 18:29:21 CEST 2014
It seems like the better fix would be to add a helper function that lets
you easily define key sequences that begin with an action. Something
like the "fake-motion" suggested, but generalized for any leader key.
-Jason
On 17:35 Wed 18 Jun , Frank Fischer wrote:
> On 13.06.2014 21:54, Stefan Monnier wrote:
> > I'm very much not familiar with Evil, so this may be completely
> > inapplicable, but an option might be to do the following:
> > - don't bind `c' to `evil-change'.
> > - instead, add various `c <foo>' bindings, to `evil-change' and change
> > it so it uses last-command-event or this-single-command-keys to know
> > which binding triggered it (instead of using something like
> > `read-event' to wait for the next event).
>
> This approach has some disadvantages:
>
> * a count after the operator but before the motion would not work
> anymore (something like c2w)
> * the same has to be done for all other operators and for every new
> operator to be defined
>
> and possibly more. And it would be a big change, maybe not (yet) worth
> the effort.
>
> Best regards,
> Frank
>
>
>
> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>
More information about the implementations-list
mailing list