I’ve been reading with interest the post from back in 2015 where the basics ideas of finding a happy balance between familiar WYSIWYG expectations, and principled, schema-agnostic structured editing, were hashed out. The result is a really great achievement. There is a lot more to ProseMirror than meets the eye:
There is one place where the current behaviour, while perhaps logical, feels counterintuitive to me (
| is the caret):
* Hello |World
Hit backspace. I’d expect:
But I get:
* Hello * |World
Later in that thread, @marijn mentions “I’ve come to realize that having ‘auto splitting list items’ actually doesn’t interfere with the behavior I defined in any problematic way.” - Backspace and Enter (and Delete, I guess) - #11 by marijn
If I’m following correctly, this insight allowed the more familiar single enter to create a new list item, rather than two presses of enter. I’m wondering if there could also be “auto joining list items” to get the more familiar behaviour indicated above. There is a nice symmetry in that, with auto-splitting list items, a single backspace gets you the non-auto-splitting behaviour, while with auto-joining, a single enter would do the same.
Has such a thing been considered?
Any advice on attempting an implementation?
(I have a related question, where backspacing a blank paragraph between two of my custom block types is problematic, because they join together. Imagine a block type rendered with a border, such that, unlike bullet lists, it makes sense to have two adjacent to each other while retaining there separateness. I’ll save that for another post but I think the issue is closely related so I thought I’d mention it)