Emacs icon indicating copy to clipboard operation
Emacs copied to clipboard

Enhancement: CTRL+U pressed multiple times modifies subsequent command

Open xqwztis opened this issue 11 years ago • 3 comments

Perhaps, just like Emacs by passing a progressively incremented numeric argument. I'm specifically interested in cursor move commands (CTRL+(n|p|f|b)), but in this context will probably work for others as well...

xqwztis avatar Feb 18 '14 13:02 xqwztis

@xqwztis I'm unsure what you mean. ctrl-u already works for me when using emacs mode; e.g. ctrl-u 20 ctrl-f. Is there something else you're looking for beyond that?

joshuafcole avatar Oct 22 '14 06:10 joshuafcole

I mean that when you invoke ctrl-u once it passes an argument of four by default to the command that follows (e.g. ctr-u ctrl-f is equivalent to ctrl-u 4 ctrl-f), and progressively increasing values for multiple subsequent invocations (I'm not sure about the exact values though) so you don't need to specify the actual value after ctrl-u, just press it once or multiple times.

xqwztis avatar Oct 22 '14 07:10 xqwztis

I actually never knew about this feature in emacs! I agree, it'd be a nice thing to add, but we should do this upstream so that all CM users can benefit. We're pretty tight on bandwidth right now, but this should be a pretty easy addition for anyone who is interested and is familiar with JS. I'd recommend making an issue on the CM github repo and crosslinking to this one so we can keep an eye on it and pull in the changes once it's complete.

Cheers, Josh

On Oct 22, 2014 12:51 AM, "xqwztis" [email protected] wrote:

I mean that when you invoke ctrl-u once it passes an argument of four by default to the command that follows (e.g. ctrl-f, so it is equivalent to ctrl-u 4 ctrl-f), and progressively increasing values for multiple subsequent invocations (I'm not sure about the exact values though) so you don't need to specify the actual value after ctrl-u, just press it once or multiple times.

— Reply to this email directly or view it on GitHub https://github.com/LightTable/Emacs/issues/13#issuecomment-60048327.

joshuafcole avatar Oct 22 '14 17:10 joshuafcole