qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Change behavior of list insertion buttons to add an item per line of selection

Open Oaphi opened this issue 10 months ago • 6 comments

meta:293942

Currently, we simply wrap the whole selection in a bullet or ordered list item. This behavior differs from how pretty much every editor out there works (TipTap/ProseMirror, GitHub's editor) and goes contrary to user expectations.

Ironically, Stack Overflow's editor is the only odd one out that I am aware of. Given that, I am not immediately jumping to implementing the change - some preliminary discussion is warranted.

Oaphi avatar May 12 '25 00:05 Oaphi

Stack Overflow's editor is the only odd one out that I am aware of.

The new stack exchange editor inserts an item per line of selection (just like GitHub, Microsoft Word, gdoc, etc)

Franck-Dernoncourt avatar May 12 '25 00:05 Franck-Dernoncourt

@Franck-Dernoncourt are you sure it does it? It might just be a bug, of course - if it is, there's even more reason to change to insert an item per line break:

https://github.com/user-attachments/assets/9a72f5fa-1ea7-4cbb-9567-f3853530f2fb

Oaphi avatar May 12 '25 01:05 Oaphi

I don't feel any need to be consistent with SE and inconsistent with almost everyone else. In particular, that video looks like a bug; it even kills the line breaks.

cellio avatar May 12 '25 01:05 cellio

@Oaphi Sorry, I forgot to mention that I was using Stack's "Rich Text Mode," which now seems to have disappeared. The Markdown mode, which is the only mode on SO I believe, behaves differently and is somewhat buggy indeed.

Image

(GIF source; Author: Justin)

Franck-Dernoncourt avatar May 12 '25 01:05 Franck-Dernoncourt

Ah, right, makes sense - yeah, I think we are all in agreement then? Let's change to inserting an item per line

Oaphi avatar May 12 '25 01:05 Oaphi

@Oaphi that sounds good to me, thanks!

Franck-Dernoncourt avatar May 12 '25 03:05 Franck-Dernoncourt