atomic-emacs icon indicating copy to clipboard operation
atomic-emacs copied to clipboard

Implement C-u "universal-argument" key binding

Open tgiardina opened this issue 4 years ago • 2 comments

In macs, C-u binds to the univeral-argument command, which allows you to run commands multiple times. For example, if you wanted to move your cursor forward 10 spaces, you could type C-u 10 C-f. Is it possible to implement this in Atom?

tgiardina avatar Jul 27 '20 17:07 tgiardina

Most things are possible, but it's not trivial. We would need to implement prefix arguments (note that not all commands use the prefix argument to mean repeat N times).

I'm aware of this gap, but I don't have any near term plans to implement it. I'd take a look at a PR if someone wants to try, though.

oggy avatar Jul 27 '20 19:07 oggy

Thanks for the quick reply! If I end up liking Atom enough to stick with it, maybe I'll look into trying to implement this myself.

tgiardina avatar Jul 27 '20 19:07 tgiardina