News for hackers. Stuff that matters.
Re:Modern terminal-based text editor by sspiff on Friday September 29, 2017 @03:23AM (#15363414)
While emacs is a terrific editor (or platform for editors), it is not easy to use. It has a unique set of keyboard shortcuts, which means that for most newcomers, their familiar hotkeys or key combos will do things that they don't expect.

A modern, straightforward CLI editor would help many people.

Re:Modern terminal-based text editor by cup-of-tea on Friday September 29, 2017 @05:16AM (#15363828)
Actually its default keys are available in lots of other places. Most notably anything that uses readline (like bash), but I've even found the keys work in unexpected places like the MATLAB editor. Plus the letter keys and arrow keys already do what you expect. What "expected behaviour" are you referring to?
Re:Modern terminal-based text editor by sspiff on Friday September 29, 2017 @06:03AM (#15364001)
Granted, but bash and other readline applications generally have a very different mode of operation compared to a text editor. They operate on single lines of input at a time (most of the time). Editors like emacs operate on a multi-line body of text, and most people expect those to work like the other text fields in their environment (Ctrl-C/X/V for copy/cut/past, Ctrl-A for select all, shift-home/end/arrows to select text etc.)

I know you can activate those keybinding in Emacs, but then none of the documentation you find about keyboard shortcuts will apply to you.

The fact that many places support emacs keybindings (like MATLAB or IntelliJ) are an indication of how many programmers are used to those keybindings, but beginning or aspiring users most certainly are not.

Don't get me wrong. I love Emacs. I use Emacs everywhere, and for everything. But I know that the default behaviour and keybindings were a hurdle to overcome when I first got to know Emacs, and it took me time and effort to get comfortable within the editor.

Re:Modern terminal-based text editor by vetinari on Friday September 29, 2017 @09:27AM (#15365020)
Cocoa widgets for text entry in macOS support Emacs keybindings by default. Yes, TextEdit too. You cannot get nearer to beginning users than that.

But yes, it takes a time to get used to. But that's matter of familiarity.

Re:Modern terminal-based text editor by sspiff on Friday September 29, 2017 @10:02AM (#15365321)
But only Emacs users use those keybindings with those widgets, so that's not a good argument to say "emacs keybindings are well known by novice users".
Re:Modern terminal-based text editor by cben on Sunday October 01, 2017 @05:16AM (#15377009)
Emacs cua-mode is not bad. It does create some confusion with C-x shortcuts, eg. C-x C-s when typed too slowly will cut selected text and enter search, instead of saving :-( But I'd love a more total conversion to CUA... E.g. I have C-o to open files, and C-w to close buffer/window.

https://gist.github.com/cben/ada7675ab9aa14000a1a50eae398611...

-- emacs user for >15yr, tired of motor context switching. (Terminal Ctrl+Shift+X/C/V vs it opening devtools in Chrome is bad enough...)

Re:Modern terminal-based text editor by dgsb on Friday September 29, 2017 @01:10PM (#15367079)
On my computers anything that uses readline behaves like vi.
Re:Modern terminal-based text editor by bostand on Friday September 29, 2017 @03:32AM (#15363444)
Emacs has a GUI with icons and menus and tooltips and all that.

Isn't that what a true beginner would use anyway instead of the terminal version?

Re:Modern terminal-based text editor by coldtea on Friday September 29, 2017 @04:04AM (#15363547)
>Emacs has a GUI with icons and menus and tooltips and all that.

Which is still nearly useless without knowing of lots of Emacs arcana.

Re:Modern terminal-based text editor by lloeki on Friday September 29, 2017 @03:51AM (#15363496)
We're talking terminal (not GUI) editors here. If I fire emacs on macOS there's no menu displayed by default. If I connect remotely on a Debian machine, the menu is there but mouse reporting is not working. The help, if started by itself, vanishes at the first keypress (on macOS), which makes it really easy to skip the C-x C-c part, and uses the emacs-only convention of C- instead of the well known ^ for control (although it's explained right there), thus doubly easy to miss. I can see how newcomers would be turned away from it.
Re:Modern terminal-based text editor by AsyncAwait on Friday September 29, 2017 @06:07AM (#15364021)
vi(m) is usually included by default and is no easier to use for a beginner, so why not emacs?
Re:Modern terminal-based text editor by lloeki on Friday September 29, 2017 @08:36AM (#15364669)
`apt-get install emacs-nox` pulls in 83MB on jessie. The installed-by-default one is vim-tiny (clocking in at 27MB), not vim-nox (which pulls in an additional 21MB), for which there is no similar emacs package. Turns out nano is ~370kB, that makes for a small non-modal beginner editor, the modal one being covered by vim-tiny.
Re:Modern terminal-based text editor by AsyncAwait on Friday September 29, 2017 @09:46AM (#15365179)
Fair, but I don't think 20MB vs 80MB should be a problem in 2017, people are downloading ~60GB games off Steam, downloading a ~5GB ISO every 6-24 months is not that much in comparison.
Re:Modern terminal-based text editor by type0 on Sunday October 01, 2017 @06:52AM (#15377251)
For some people on the move data transfers are expensive, even if 80MB isn't much that adds up very fast.
Re:Modern terminal-based text editor by cryptonector on Friday September 29, 2017 @10:47AM (#15365737)
Because modal editing is where it's at!
Re:Modern terminal-based text editor by kire456 on Friday September 29, 2017 @05:15AM (#15363825)
I was once a "true beginner", having been forced to use basic terminal commands in school and having decided to get a raspberry pi and shove Raspbian on it for laughs. There is no GUI over ssh from Windows unless you already know what you're doing. In that context, accidentally opening emacs is bewildering :)
Re:Modern terminal-based text editor by deong on Friday September 29, 2017 @12:01PM (#15366451)
That's basically my question. What's the market for people who want a terminal based programmers editor in late 2017 who don't already use Vim or Emacs?
Re:Modern terminal-based text editor by meitham on Saturday September 30, 2017 @02:03AM (#15371484)
I moved from Vim to Spacemacs (emacs with evil kit) four years ago. I was worried initially worried my productivity might go down due to not knowing emacs functions. Surprisingly, there was an included plugin (https://github.com/kai2nenobu/guide-key/blob/master/README.o...) that offered me all the possible keys at the bottom. Most functiond are two, three or four keys away. For instance, I wanted to copy the file name I am editing I could press Spacebar, which offered about 15 further keys, such as f all functions to do with files, b for buffer functions, w for window functions, etc. Once i pressed f, then I see all the functions possible on a file, including Spc-f-y for yanking the file name. This made the editor auto discoverable for me, almost like jumping to Windows 3 after years on MS-DOS.
Re:Modern terminal-based text editor by type0 on Sunday October 01, 2017 @06:50AM (#15377244)
Spacemacs is amazing but it's almost an IDE at that point.
Re:Modern terminal-based text editor by meitham on Sunday October 01, 2017 @07:39AM (#15377387)
An IDE with the best embedded editor, Vim, reimplemented with elisp!
Re:Modern terminal-based text editor by dspillett on Friday September 29, 2017 @10:04AM (#15365333)
> While emacs is a terrific editor ... it is not easy to use.

I would suggest it is easy to use, mainly because it can be customised pretty heavily to work your way, it just isn't easy to learn which is why I've stuck with other options.

Re:Modern terminal-based text editor by barrkel on Friday September 29, 2017 @12:33PM (#15366760)
Emacs is mostly just unfamiliar. It's also a little bit opinionated, and out of the box its opinions have a little bit of distance from most GUI editors.

It's not actually hard to learn. I reckon vi is harder to learn, but at least with vi you know you have to do things differently. Emacs is much closer to other common editors, just a little bit different, and that can make it surprisingly frustrating, with the emphasis on surprise.

Re:Modern terminal-based text editor by jcelerier on Friday September 29, 2017 @11:34AM (#15366187)
I think that "easy to use" means "easy to use from the beginning" most of the time.