avendael / atomic-emacs

An atomic implementation of emacs keybindings for the Atom text editor.
MIT License
207 stars 56 forks source link

Implement C-u "universal-argument" key binding #158

Open tgiardina opened 4 years ago

tgiardina commented 4 years ago

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?

oggy commented 4 years ago

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.

tgiardina commented 4 years ago

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.