cristianvasquez / obsidian-prettify

A markdown prettifier for obsidian
GNU General Public License v3.0
129 stars 12 forks source link

Can't redo action when Markdown prettifier run is used #46

Open wzjachow opened 3 years ago

wzjachow commented 3 years ago

Accidentally, I ran prettifier (with shortcut) when I had the entire document selected. As a result, I got the notification 'There is no line 127 in the document' and the document has been cleared. The worst thing about it is that this action can't be revoked I don't know if this is an issue with the plugin or obsidian itself but I would expect to be able to revert any changes made in the document.

cristianvasquez commented 3 years ago

I've used the prettifier and then ctrl+z, (undo) and it reverts the changes.

I personally use git to keep the history of all changes in my notes, maybe it can be useful to you.

wzjachow commented 3 years ago

On Mac Undo does not work. Tested many times and each time same result -> lost of the entire document.

wzjachow commented 3 years ago

Gif demo: https://streamable.com/cq8cuw

cristianvasquez commented 3 years ago

I see, I don't know what's going on, and I cannot reproduce in my Linux.

I've just searched for 'there is no line... in the document' in the code and libraries, and I cannot find any reference. Perhaps there is a clash of plugins I don't know.

I'll reopen this in case that if someone has another clue.

wzjachow commented 3 years ago

I created a new vault with default settings and Markdown Prettifier plugin installed only (default settings too). The result is the same.