Difficult to select and delete checklist lines

Steps to reproduce

Paste the following into a new note and follow the instructions

- [x] Click anywhere on this line
- [ ] Press *Home* key twice
- [ ] The cursor should now be at the beginning of the first checklist line
- [ ] Press *Shift + Down Arrow*

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

  • All of the first checklist item is selected
  • None of the second item is selected
  • Pressing Delete key should delete only the first item

Actual result

  • All of the first checklist item is selected
  • Bullet and checkbox (- [ ]) of second item are also selected
  • Pressing Delete key deletes the first item and the checkbox of the second item.

Environment

SYSTEM INFO:
	Obsidian version: v1.5.12
	Installer version: v1.4.13
	Operating system: #35-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 26 11:23:57 UTC 2024 6.5.0-35-generic
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

This bug has been around for a while now. Maybe it was introduced in v1.5.x? Not sure exactly when it appeared, but I’m fairly certain checklist item selection did not always work this way.

I’m not sure if it would help, but maybe download and reinstall to a more recent installer version.

Perhaps it is also OS-dependent?

I can’t reproduce this on MacOS, Obsidian 1.5.12 (installer 1.5.12) or Obsidian 1.6.1 (installer 1.5.12). Pressing shift-down selects only the first line and no portion of the second line. Deleting deletes only the first line.

(I’ll just sneak in one quick workaround too. Delete Paragraph command would also delete the line without needing to Home-Home-Shift-Down-Delete. Can also be mapped to a hotkey.)

I can reproduce this also on mac (replace pressing Home by Cmd + ←. The bug appears in live preview—on source mode the cursor moves as expected. Pressing shift is unnecessary to observe the unexpected behaviour.

I tested on Obsidian v1.6.2 (installer v1.6.2). mac Sonoma 14.5

Oh I stand corrected. I can reproduce this in the Sandbox vault in 1.5.12 and 1.6.2 on MacOS.

One of my CSS snippets somehow corrects the issue. But even if I completely empty the CSS file (and restart Obsidian), it still corrects it… Very strange.

You can press Cmd + X or Ctrl + X to delete checklist items.

1 Like

I can see that there is something odd going on here. It doesn’t not happen all the time.
In the mean time, keep in mind that you can do shift-end too.

This issue still exists on v1.8.9.

keep in mind that you can do shift-end too.

It works, but does not delete the newline, so have to press delete twice.