Pasted Tables Can't Be Undone (Ctrl + Z)

Steps to reproduce

(Videos are better than words. I’ve added a video below.)

  1. Copy-Paste complex table from other source to Obsidian.
  2. Press Enter 2 times
  3. Undo the enters and the table.
  • This doesn’t happen if the table was copied from Obsidian.
  • Maybe the table must have links. I’m not sure.

Did you follow the troubleshooting guide? Y

Expected result

Table can be removed with undo

Actual result

Table can’t be undone. Somehow the undo is stuck inside content of the table (see video)

Environment

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.9
	Operating system: Windows 11 Pro 10.0.22631
	Login status: logged in
	Language: en
	Catalyst license: insider
	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

  • I’ve found out that I have to make 2x Enter for a new line after pasting the table because the cursor is a the last | of the table.
  • Probably having to press the enter 2x is causing the bug.

can you try holding ctrl+z? I am facing a bug when undoing table creation where it only undos when holding, not clicking

can’t seem to edit my comment but this is probably related to the bug I mentioned. Steps to recreate:

  • create a table (regardless if pasted or created manually)
  • perform some edits
  • make multiple undos
  • when the undo reaches the table, the cursor gets stuck in there
  • holding ctrl+z seems to fix it

Seems you can easily undo a table right after you create it. Issue occurs if you perform any edits after creating.

Also, when vim binds are enabled, u for undo doesn’t work at all with tables.

1 Like

I can’t reproduce this in 1.9.12