Stacks-Editor icon indicating copy to clipboard operation
Stacks-Editor copied to clipboard

GH editor-like (un)ordered list bullet auto insertion

Open jwest86 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. On the Markdown mode, I expect:

  1. Hitting enter seems like it would give me another number when I already am on a numbered line.
  2. Hitting enter again I'd assume it would delete the number if no other text was present.
  3. 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.

jwest86 avatar Oct 07 '21 14:10 jwest86

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.

b-kelly avatar Oct 07 '21 15:10 b-kelly

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...

chwarr avatar Oct 08 '21 17:10 chwarr

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 :)

hamvocke avatar May 09 '22 09:05 hamvocke