Folks,

It would seem to me a solution to meet the original requirement would be a 
timer that after 15 mins of inactivity saved to github only if their were 
unsaved changes.

Personally I am having trouble getting my github saver to work, any good 
doco anyone can point to?

Regards
Tony

On Monday, February 10, 2020 at 4:22:06 AM UTC+11, David Furcy wrote:
>
> Thank you. That is *very* helpful!
>
> David
>
> PS:
>
> duplicating threads isn't best practice!
>
>
> OK; but I had two threads because these are two different questions.
> This one is about local storage.
> The other one (which is still unresolved but I am OK giving up on it)
> was about scheduling remote, automatic backups to GitHub at regular 
> intervals.
>
>
> On Sunday, February 9, 2020 at 10:47:24 AM UTC-6, PMario wrote:
>>
>> On Sunday, February 9, 2020 at 2:44:55 PM UTC+1, David Furcy wrote:
>>>
>>> I just realized that my tiddler creations/edits get saved to my GitHub 
>>> repo more
>>> often than they get saved to my local file system.
>>>
>>> Does TW5 normally save the edits ONLY in browser-specific local storage?
>>>
>>
>> TiddlyWiki doesn't use browser local storage out of the box. There is a 
>> plugin, which needs to be activated, if you want to do so. 
>>
>> I did make some tests after responding to your first post 
>> <https://groups.google.com/forum/#!topic/tiddlywiki/D2bTSNatTrA>. (BTW: 
>> duplicating threads isn't best practice!)
>>
>> You should be able to use the "Browser-based local storage" plugin. See 
>> more info below
>>
>> If so, when is the local .html file actually updated?
>>>
>>
>> -- In your case never!
>>  
>>
>>> In fact, When I close my browser tab, my changes are NOT changed in the 
>>> local 
>>> .html file.
>>>
>>
>> That's intended, with the setup you use. 
>>  
>>
>>> I am using Chrome. Also, once in a while I see a 409 error. 
>>>
>>
>> IMO that's a problem with github, or github pages. ... If you save the 
>> whole wiki several times within a view seconds. 
>>
>> The save process (depending on your internet connection speed) may need 
>> several seconds to upload the content. If you start it 2 or more times, the 
>> github server may be confused and returns 409 response error 
>> <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409> 
>>
>> AND more important. If the index.html file is commited it can take 
>> several minutes (depending on how busy github is) till the gh-pages are 
>> updated. 
>>
>> So save and immediate reload will probably download an _old_ wiki!!!!
>>
>> -----------
>>
>> How to install the local storage plugin:
>>
>>  - Open the ControlPanel : Plugins tab
>>  - Click [Get more plugins] button
>>  - Click [Open plugin library]
>>  - Search for "local"
>>  - "Browser-based local storage" is the one you want
>>  - Save to github
>>    - Wait a little bit
>>  - Reload the wiki (Shift F9) - and make sure, that it's the one with the 
>> plugin. 
>>  - Save again!!! This is important, otherwise the local-storage sync 
>> isn't active on reload
>>  
>> Afterwards do some testing, if the local storage is really synced. ... I 
>> managed to screw up the mechanism, and I think I found an issue  BUT more 
>> testing is needed. 
>>
>> have fun!
>> mario
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a13b88e-c1be-4f09-8759-66900f572b2a%40googlegroups.com.

Reply via email to