organice icon indicating copy to clipboard operation
organice copied to clipboard

As a user, when editing a headlines description, and I'm editing a list, make `RET` be context aware

Open munen opened this issue 4 years ago • 2 comments

This would be the same behaviour as hitting S-M-RET in Emacs.

When at the end of a line and hitting RET, and I'm currently editing a list item`, I don't want a new blank line, but instead I want a new line, with indentation and the same list item indicator as the line above.

Examples:

Hitting RET at the end of - foo creates:

- foo
- 

Or hitting RET at the end of the last line of

- [ ] foo
  - [ ] bar

creates

- [ ] foo
  - [ ] bar
  - [ ] 

munen avatar Aug 28 '19 11:08 munen

... or hitting RET at an empty list item

- [ ] foo
- [ ] 
      ^

yields

- [ ] foo


^

Maybe... ;)

It would, in this case, save many Backspace and one RET.

schoettl avatar Jul 14 '20 18:07 schoettl

That's an interesting thought!

Is there similar behavior in Emacs? I just tried RET S-RET and S-M-RET to be sure. Tbh, I didn't know how S-RET behaves in this scenario - and it's quite interesting(;

munen avatar Jul 14 '20 18:07 munen