Zachatoo / obsidian-css-editor

Edit CSS snippets in Obsidian.
MIT License
57 stars 2 forks source link

CTRL + Z too many times erase the file content #27

Open PippoGot opened 2 weeks ago

PippoGot commented 2 weeks ago

The 3rd time it happens now, when making changes to the file and then pressing CTRL + Z multiple times (1 more than the number of changes) completely wipes out the file content and also proceeds to save it, so it's impossible to recover it without a backup.

Zachatoo commented 2 weeks ago

Can you use the redo hotkey (CtrlY) to recover it? Both the undo and redo hotkeys should be supported.

PippoGot commented 2 weeks ago

Will definitely try and let you know as soon as possible. Actually i thought i was doing it by using CTRL + SHIFT + Z as i'm used to that but my bad i didn't check the shortcut.

Anyway i think it would be best to change the behaviour so that it wouldn't erase everything.

PippoGot commented 2 weeks ago

Tried with CTRL + Y and it works.