> With all the caveats (I agree with) would this method obviate the need for 
> the user to install a saving system? I.e. click wiki and its saved auto into 
> browser without any further steps?

It is categorically not suitable as a way for most users to save changes to 
their own wikis. The fundamental problem is that browsers are free to "evict" 
local storage whenever they want, and we get no warning of it.

Browsers added this feature to give web developers a way to improve performance 
through locally caching data pulled from the server. The assumption that the 
data is volatile data and can be retrieved from the server if it is lost, runs 
through the implementation.

Having said that, local storage can still be very useful, including things like 
experimentally loading plugins without having to save before reloading.

I plan to improve it a bit further, in particular I want to get it working well 
in the client server configuration so that local storage can be used as a 
temporary holding area in case the connection to the server is lost.

Best wishes

Jeremy 


> 
>> On Thursday, 7 February 2019 23:11:47 UTC+1, Jeremy Ruston wrote:
>> Further to Mat’s discovery 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”.
>> 
>> 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
>> 
>> 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/58dfcf33-f02c-4c15-ace4-16eaea3c3616%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/7DB2C015-ABDE-4167-B061-978F39E598BE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to