organice
organice copied to clipboard
As a user, when editing a headlines description, and I'm editing a list, make `RET` be context aware
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
- [ ]
... or hitting RET
at an empty list item
- [ ] foo
- [ ]
^
yields
- [ ] foo
^
Maybe... ;)
It would, in this case, save many Backspace and one RET
.
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(;