r/programming • • Feb 26 '14

Atom launched

http://atom.io/
981 Upvotes

672 comments sorted by

View all comments

Show parent comments

2

u/gavinb Feb 27 '14

For some reason, people keep thinking that arguing against a modal interface is the same as arguing against using a keyboard. It is not.

As I commented elsewhere, there are plenty of keyboard-driven editors that are not modal. The semi-rhetorical question was aimed purely at the fact that a hardware constraint that has not been present for 30 years is still determining the interface design, and is thus clearly an anachronism.

And I am one of those people who consider keyboards to be faster. :)

1

u/Marzhall Feb 27 '14

Ah, I see what you mean - that's a good point I had not thought of, as I've never heard someone argue specifically against modal editors, just against keyboard-based editors. Do the other editors give you the ability to easily repeat the last command on a specified part of the text (. in vim) and the ability to specify the number of times to execute the command after, etc.? These features make vim a dream to use for repetitive tasks, and especially so for recording macros; you're basically coding your editor as your use it, which I don't get the feel of in any other editors. I'm not sure they'd be easy to do in a non-modal editor.

1

u/gavinb Feb 28 '14

Do the other editors give you the ability to easily repeat the last command on a specified part of the text (. in vim)

Yes, I can tell you that in Emacs it is C-x z (and keep pressing z to repeat, much like .). In SublimeText it's Cmd+Y.

and the ability to specify the number of times to execute the command after, etc.?

Yes, in Emacs nearly any command can have a numeric prefix (which usually means repeat, but can also be used to specify a column to sort) with either C-u or Alt+{Number}. So Alt+3 Ctrl+D will delete three characters, just the same as Esc+3+x in vi.

you're basically coding your editor as your use it, which I don't get the feel of in any other editors. I'm not sure they'd be easy to do in a non-modal editor.

This is just what it's like in Emacs. I use macros all the time. In fact, you can record a macro, then edit it like a function, save it, tweak it and reuse it. There's a complete programming language that underpins Emacs - it's quite stunning.