typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Disable autosave / draft save

Open Brossollet-Antonin opened this issue 5 years ago • 6 comments

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!

Brossollet-Antonin avatar Nov 16 '20 15:11 Brossollet-Antonin

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.

glocalglocal avatar May 09 '21 13:05 glocalglocal

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

zhaoqingqing avatar Sep 29 '21 02:09 zhaoqingqing

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?"\\":"/")+"!@#$%^&*()";

pieczynski avatar Feb 24 '23 10:02 pieczynski

pieczynski's method works.

shinegogo avatar Jan 16 '25 02:01 shinegogo

Yes I would also like a way to disable this or change the drafts folder to be next to the file.

Fealthas avatar Aug 02 '25 02:08 Fealthas

The method above doesn’t work on Linux, so the easiest fix is to tweak the directory permissions.

First, locate the Typora configuration folder. Then, open a terminal and change the permissions for the "draftsRecover" directory for the root user.

sudo chown -R root:root draftsRecover/

pieczynski avatar Nov 09 '25 09:11 pieczynski