typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Disable autosave / draft save #3996

Open Brossollet-Antonin opened 3 years ago

Brossollet-Antonin commented 3 years ago

I'm working on documents saved on a veracrypt encrypted partition for privacy reason. Even after disabling autosave options, drafts are still saved in appdata if I'm not being extra careful. It would be great to have an option to disable altogether all autosave function including drafts. Thank you for this great software!

glocalglocal commented 3 years ago

And, like in Word, when you save or confirm you want to discard changes (ie when you exit gracefully), Typora should clean after itself and delete all drafts for that file. I just realised I had a year's worth of drafts since the first day I installed Typora, some of them potentially sensitive, and I didn't even know.

EDIT: Also, rather than hiding them away, draft files should be saved in the same folder as the saved file. That would make them immediately visible and solve the OP's issue as the drafts would be saved securely in the VeraCrypt volume.

zhaoqingqing commented 3 years ago

how to Disable autosave ?

in my typora is not work.

in settings i disable autosave,but when i edit md file in appdata folder also append new drafts xx.md

@abnerlee @vassudanagunta @lesander

pieczynski commented 1 year ago

In Notepad++:

Remember: Create a backup file.

Open: C:\Users\{USER}\AppData\Local\Programs\Typora\resources\appsrc\window\frame.js

Find: var t=window._options.userDataPath+(File.isWin?"\\":"/")+"draftsRecover";

Replace with: var t=window._options.userDataPath+(File.isWin?"\\":"/")+"!@#$%^&*()";