Shorcut or option to undo

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

Things I have tried

How to undo changes made to the text, including the ctrl+z shortcut?
Sometimes I need to undo something in the text and I can’t find where in obsidian, maybe there is a special shortcut to undo just the text.

hmmm, not sure… i think if you make changes with a script, undo will undo those changes as well…so there’s no diff

as for the shortcuts, there’s one or two threads similar to this,
for exxample

If you’ve made multiple changes, switched notes, etc., where Cmd/Ctrl + Z won’t get you back to where you want to be, you could try the File Recovery core plugin:

https://help.obsidian.md/Plugins/File+recovery