simonbaird / mGSD

The TiddlyWiki powered GTD system formerly known as MonkeyGTD
http://mgsd.tiddlyspot.com/
67 stars 19 forks source link

Autosave on tag operations #23

Open simonbaird opened 14 years ago

simonbaird commented 14 years ago

Should be configurable

simonbaird commented 14 years ago

This approach might be better.

Kralik: I have the normal AutoSave turned off and instead have a bit of script that checks to see if the wiki is "dirty" (i.e. has been changed) every minute or so. If it is, it saves. I notice no performance loss (in fact, seems much faster than saving every change). Of course, the check could be changed from 1 minute to 5 minutes, etc. if needed.

I use:

if(store && store.isDirty && store.isDirty()) saveChanges();

On a timer (setTimeout).

Jobirder commented 14 years ago

Here's a method with InlineJavascript, but I'm sure there must be a better way.

See: http://groups.google.com/group/gtd-tiddlywiki/msg/8713accf76e57369

That's my personal quick-fix.

Jobirder commented 14 years ago

Tried it in the fork, let me know if it is useful.