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?
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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.
Another Question in relation to this what about leveraging pouchDB as noteself has, which can I believe remove the volatile nature of the local storage you describe? this is without needing to provide the external couchDB component thus no configuration settings.
RegardsTony
On Friday, February 8, 2019 at 9:11:47 AM UTC+11, 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: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 wikiThe 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 wishesJeremy.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/e28a6f28-0a73-4174-a070-e7fde47ba8cd%40googlegroups.com.
- Can we differentiate tiddlers modified via local storage and those not, including across multiple sessions - NoteSelf seems to keep the haschanged flag for such tiddlers (along with versions)
- With a Wiki + Local storage changes, we should be able to provide easy access to a set of "Big Green Save Buttons"
- Save Empty based on this Version
- Save As Served without tiddlers from local Storage (When someone wants to make an Edition out of the served Wiki).
- Save As Served Plus tiddlers from local Storage (allows save in current state) and to leave local storage method
- Save only new or changed tiddlers stored in Local Storage
- Export changes and could be re-imported into another browser/session
- Can send to master wiki owner for selective import.
- Could include a filtered export eg export only comments.
With the introduction of a local storage feature I believe all of the above are relatively trivial to achieve however they will add great utility to tiddlywiki and users. They could be included in the local storage plugin but in reality the permit emergency save, export changes and more that would help in most use cases. Perhaps a set of "Big Green Buttons" can be placed in ControlPanel > Saving > General
RegardsTony
On Friday, February 8, 2019 at 9:11:47 AM UTC+11, 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: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 wikiThe 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 wishesJeremy.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/76286393-aadf-4d03-a450-40ffd6cbc45a%40googlegroups.com.
I'm afraid PouchDB uses the same local storage mechanism, and is subject to exactly the same restrictions if it's not connected to a server.
Interesting, I have had no reason to consider PouchDB storage to be volatile in anyway, as is suggested on the NoteSelf site. Nor have I lost the data this way. My experience suggests I can trust local storage, your outline suggests I should not.I'm afraid PouchDB uses the same local storage mechanism, and is subject to exactly the same restrictions if it's not connected to a server.If local storage is volatile and undependable it undermines the trust we need to use such a feature.
--RegardsTony
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/600d6cda-62c1-4167-84d5-460f793db539%40googlegroups.com.
- Save As Served without tiddlers from local Storage (When someone wants to make an Edition out of the served Wiki).
Not so easy. The original values that were overwritten by local storage are no longer available.
Perhaps the "save empty" button is worth putting in control panel, I'm not sure about the other examples you mention.
The trouble with local storage is that it works fine day after day until suddenly it doesn't. It might be because of something inscrutable that the browser has done when it detects a shortage of disc or memory space, or it might be yourself clearing history without remembering that doing so also nukes local storage...
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.
Could we use the innerwiki plugin or iframe to spawn a window containing the fresh tiddly wiki loaded from disk "before" local storage is used, and present a save button?
And inrelation toPerhaps the "save empty" button is worth putting in control panel, I'm not sure about the other examples you mention.To me this "save empty" is the least helpful "Big Green Button", but with the others you say will work, where are they?, do users have access to them or must they "develop" them? I am keen to have them clearly available, even if only in a plugin or documentation.
Thanks for your feedbacktony
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/711c7e75-c71a-42be-b3f7-007bf40824f6%40googlegroups.com.
So we can say local storage is fairly reliable, at least in the current browser session,
so perhaps providing the export changes button that can be re-imported, can offer a form of changes only backup, which can use the standard download mechanisium, and since the file may never be accessed the download mechanism is sufficient.
As long as a Backup/restore changes and full wiki option, is clear and in front of users, I do not think this volatility will be an issue.
RegardsTony--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/5d121f20-6a12-4a90-aac5-8d17ac168e9d%40googlegroups.com.
Will it also handle the case of deleting a tiddler (one which originated from the server and isn't in localstorage) while disconnected? I would think you would need some sort of "whiteout" tiddler in localstorage in order to handle that case.
I ask the question because of this workflow I thought of:
- file:/// wiki with this plugin enabled
- The plugin automatically saves changes to localstorage as they are made
- Every once in a while (several times per day), the user clicks the save button which downloads a backup of the full wiki
- Less frequently, at the OS level, the user copies the latest downloaded version over top file:/// they started with and refreshes browser
- This refresh will cause the localstorage items to be deleted, starting over fresh
But there will be cases with this workflow and your current implementation where deleted tiddlers would reappear after refresh. Deletes of any tiddler which exists in the wiki after step 4 would persist only until the next refresh.
Brian
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/CAO5X8Cwu6TVD47BunWE9sY9wbf7t_s%2B2FmOtOqOjbrKoJ9wtyg%40mail.gmail.com.
On 7 Feb 2019, at 22:34, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:If you run encryption, will the internal tiddlers also be encrypted?
Hi Jeremy, I think this is a nice addition to the core plugins and I can see cases where it could be very useful to me
I often open tiddlywiki.com or its prerelease to try out something and end up in a list of tiddlers that contain code I'd like to copy over to a personal wiki
It would be cool if the browser plugin could provide a tools button to export its tiddlers to a (json?) file for easy import in another wiki
all the best,BTC
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/e783465e-ad1a-48e0-9f0d-398ebdf493e1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3CB84210-3C76-4E88-A514-8E0189801630%40gmail.com.
I’m torn as to whether we should enable it on tiddlywiki.com; I think not, because of the dangers we’ve been discussing, and yet I’d love to have an easily accessible up to date wiki with it. For the moment that is:
I wrote: With all the caveats (I agree with) would this method obviate the need for the user to install a saving system?
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.
Some more info about the storage limits. If you take your time an read this stuff, you'll see that the behaviour is completely unpredictable.And in my opinion way to fragile for our usecases. ...
On 8 Feb 2019, at 13:53, PMario <pmar...@gmail.com> wrote:- So the only thing you need to know is tiddlywiki.com and you can read the local storage from all TWs stored in the subdirectories.
On 8 Feb 2019, at 12:12, Xavier Cazin <caz...@gmail.com> wrote:
Maybe even a bit too well: when we add new tiddlers then reload the wiki despite the warning, it let us retrieve the newly added content as miraculously expected, but then the wiki is not marked as tainted anymore, which seems misleading. I think the red alert should probably remain until the wiki is actually saved.
This subject is very interesting and the afformentioned plugin may have its place. The utility of saving in the browser reliably is very powerful, as a result I hope the conversation continues to this end. Looking at pouchdb that uses indexdb seems particularly strong especialy in firefox which will prompt if you exceed the basic limits on top of your local disk availability.
I read the following;
In Firefox, PouchDB uses IndexedDB. Though Firefox has no upper limit besides disk space, if your application wishes to store more than 50MB locally, Firefox will ask the user using a non-modal dialog to confirm that this is okay.
It is true that other local save mechanisms and browsers are much less reliable because they treat local storage more like a cache, its disposable in some circumstances.
Given my expierience with variouse cloud services that have local and offline services I am confident there are reliable solutions available, we just need to find them, options that have a low or zero complexity to the user.
Regards
Tony
This subject is very interesting and the afformentioned plugin may have its place. The utility of saving in the browser reliably is very powerful, as a result I hope the conversation continues to this end. Looking at pouchdb that uses indexdb seems particularly strong especialy in firefox which will prompt if you exceed the basic limits on top of your local disk availability.
I read the following;
In Firefox, PouchDB uses IndexedDB. Though Firefox has no upper limit besides disk space, if your application wishes to store more than 50MB locally, Firefox will ask the user using a non-modal dialog to confirm that this is okay.
It is true that other local save mechanisms and browsers are much less reliable because they treat local storage more like a cache, its disposable in some circumstances.
Given my expierience with variouse cloud services that have local and offline services I am confident there are reliable solutions available, we just need to find them, options that have a low or zero complexity to the user.
Regards
Tony
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/cdba024d-1b0a-44a7-9f5e-6d406a86ba33%40googlegroups.com.
On 26 Feb 2019, at 05:01, TonyM <anthony...@gmail.com> wrote:Further feedbackPerhaps a setting in the local storage plugin, or a seperate session storage plugin to use session only storageSession storage is per-origin-per-window-or-tab and is limited to the lifetime of the window. Session storage is intended to allow separate instances of the same web application to run in different windows without interfering with each other, a use case that's not well supported by cookies
- I am struggling a little with the workflow to configure and deploy Wikis with Local storage since once activated it starts using local storage.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/af265d40-69fe-461d-8fee-2b358bf4c85b%40googlegroups.com.
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: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 wikiThe 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 wishesJeremy.
Is there a mechanism for deleting tiddlers from local storage, when you're sure you're done with them?
Thanks!-- Mark
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/78ffbb14-b7f9-4182-86f7-047a6d8520f7%40googlegroups.com.
I’m not keen to support session storage because it makes things more complicated without addressing any new use cases.
- I am struggling a little with the workflow to configure and deploy Wikis with Local storage since once activated it starts using local storage.
You might find it helpful to set up a filter for which tiddlers are saved to local storage. A useful variant is to set $:/config/BrowserStorage/SaveFilter to [prefix[$:/state/]] and thus to only save state tiddlers.
To whom are you replying?
Regards
Tony