ryanmcalister / unotes

Unotes Visual Studio Code Extension. A markdown WYSIWYG notes editor.
MIT License
173 stars 22 forks source link

Undo works only partially #147

Open MURTOMAASORTAJA opened 1 year ago

MURTOMAASORTAJA commented 1 year ago

As the title states, Ctrl+Z or Edit -> Undo doesn't undo things that involve other than manually typed stuff, i.e. I can undo manually typed stuff, keystroke by keystroke, but a deletion of a chunk of selected text, or pasting stuff from clipboard is un-undoable. I can repro this both in WYSIWYG and in splitview thingie.

If I type "abcd" with my keyboard, paste a paragraph of text from elsewhere and then slap Ctrl+Z a few times, it's the abcd-text that gets undone, letter by letter.

Happy to provide additional information if requested.

Using VS Code 1.73.1, UNotes 1.5.0 and Win11 Enterprise 21H2 22000.1219

Orionde commented 1 year ago

I have the exact same issue.

It also looks like that I can't undo anything related to tables in WYSIWYG. If I create a new row then Ctrl + Z, it will not undo the row creation.

It would be really nice if this issue could be fixed as the undo feature is indispensable.

Using VS Code 1.77.1, Unotes v1.5.2 and Ubuntu 22.04 x64 5.19.0-38-generic

Tsabary commented 6 months ago

Yeah, it's a real pain. I'm not sure why, but a couple of times where I hit backspace to delete an unnecessary new line, it deleted the entire paragraph proceeding it, and I completely had to re-write it which is extremely frustrating. No amount of hitting ctrl+z helps, it's gone.

EDIT: this s the third time it happened to me in the span of an hour, everytime losing an entire paragraph which took minutes to write. For me this bug renders this extension unusable as risking losing work so frequently simply isn't worth it.