I frequently find my self trying to cut/paste a list item from one place to another and I often end up with a duplicate dash. I wish Obsidian would be smarter upon paste in a scenario like this, like some other editors are.
Automatically remove automatically added list-item prefix when appropriate
Use case or problem
place caret in line which starts by string "- " (dash, space), optionally preceded by indentation
Cut a line “1” using Ctrl+X
place cursor to end of another line “2” which also starts by "- " (optionally preceded by indentation)
press Enter. Now "- " is added to new line, that is OK.
press Ctrl+V to paste the line “1”. Now line starts by "- - "
I have to navigate to the line beginning and delete the automatically added "- "
Proposed solution
I would prefer automatically added "- " to be removed automatically when pasted content starts by "- " followed by standard text (e.g. alphanumeric character), i.e. pasted text matches markdown list item syntax.
Similar situation occurs when caret is at the end of line and delete is pressed. Fixing it by pressing Enter (immediately or later) leads again to "- - ".
When curent line starts by string "- " (dash, space), preceded by optional indentation and at the same time caret is followed by "- " and Enter is pressed, then editor should not add another "- " automatically.
i very much agree! I created a different request with exactly that issue. This issue particularly harms users copying/pasting from Obsidian into other apps which are essential workplace tools – I’m hoping it can be resolved