Stacks-Editor
Stacks-Editor copied to clipboard
GH editor-like (un)ordered list bullet auto insertion
Is your feature request related to a problem? Please describe. On the Markdown mode, I expect:
- Hitting enter seems like it would give me another number when I already am on a numbered line.
- Hitting enter again I'd assume it would delete the number if no other text was present.
- Hitting again (without the number on a line) I'd assume it would create a new line, as expected, normal enter behavior.
THIS Github EDITOR I'M IN RIGHT NOW DOES EXACTLY WHAT I'M ASKING FOR :)
We can do one better though, if we're on a line below a numbered line, say we're editing an existing list: I expect that we would interpret the previous line and make the next number if there are no newlines or lines of text in between. I don't think that would delay things too much since you only have to look at the beginning of the line and the next couple of characters with a compiled regex or w/e.
Thanks for the feature request! I've verbally received this request a once or twice before, so it seems that this might be something that a wider audience of people are interested in.
FWIW, I fall into the camp of being frustrated by the automatic insertion of "* "/"1. ". I often end up with "* * " because both the computer and I are doing the same thing. Muscle memory...
Seems to be a duplicate of #68. Ironically, over time I grew frustrated with Github's auto insertion of bullets myself for the same reasons that @chwarr is describing.
I'll close out #68, no need to track this request twice :)