Further to Mat’s discovery 
<https://groups.google.com/d/topic/tiddlywiki/T_v5vSiCEDA/discussion> of the 
new mathematics operators in v5.1.20, there’s another newly added feature that 
has also been discussed for quite a long time: a plugin that lets TiddlyWiki 
save and load tiddlers from browser’s built in “local storage 
<https://en.wikipedia.org/wiki/Web_storage#localStorage>”.

At startup, the plugin reads tiddlers from local storage. Any tiddlers that are 
identical to those built into the file are deleted from local storage. Once the 
wiki is up and running, any tiddler changes are written straight to local 
storage.

You can install it using the plugin library in a v5.1.20-prelease wiki, or 
there’s an example here that has it pre-installed:

https://tiddlywiki.com/prerelease/editions/full/#%24%3A%2Fplugins%2Ftiddlywiki%2Fbrowser-storage
 
<https://tiddlywiki.com/prerelease/editions/full/#$:/plugins/tiddlywiki/browser-storage>

You’ll see that even though the wiki warns you when you refresh in the usual 
way, once you reload it any changes you’ve made will reappear.

Browser local storage is not a panacea for TiddlyWiki:

        • Browsers limit the amount of local storage available to a page, 
typically to 5 or 10MB
        • Keeping personal data in browser local storage can lead to unexpected 
privacy violations
        • Browsers reserve the right to without warning delete data stored in 
local storage at any time
        • Browsers tie local storage to a URL which can lead to problems if you 
move a wiki to a URL previously occupied by a different wiki

The plugin isn’t quite finished; I want to add a more visible indicator for 
when data is stored in local storage, and a way to delete any stored data and 
disable it for the future.

As usual, questions and comments welcome,

Best wishes

Jeremy.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/91A2103F-92D8-4740-9E97-12D36F6929B5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to