Hi Danielo

On Sun, Jun 1, 2014 at 1:14 PM, Danielo Rodríguez <[email protected]>
wrote:

>
>> Your questions all seem to relate to the scenario of working on an
>> offline snapshot of a client-server wiki, and subsequently synchronising
>> changes. It's not a use case that is particularly well supported at the
>> moment, but the intention is to fully support it.
>>
>>
> That is nice. In my opinion it will be a hit on TW usage, in the positive
> way.
>

TW Classic supports the offline sync scenario, which we implemented for
tiddlyweb/tiddlyspace. Because it's fiddly to set up (and conceptually
fiddly) we found that it wasn't actually used very much.

>
>
>> If you want to work on the same wiki content as both a standalone wiki
>> and a client-server wiki, then the best approach is to use two different
>> wikis, as you see with tw5.com and tw5.com-server in the TW5 repo.
>>
>> The idea is to keep your content in a wiki that contains the correct
>> plugins for standalone use, and then create a separate wiki for
>> client-server use that includes it, using the "includeWikis" property of
>> the tiddlywiki.info file. See:
>>
>> http://tiddlywiki.com/#TiddlyWikiFolders
>>
>
> I don't understand this  at all. What I want is to be able to import form
> a file without overriding the changes made on the server side. Does that
> configuration protect the server edition tiddlers? maybe it just import
> newer tiddlers? If I understand well the workflow would be:
>

The explanation above is explaining how to work on the same wiki content as
both a standalone wiki and a client-server wiki. It doesn't support offline
sync; that's what I'm explaining here: offline sync isn't yet properly
supported.


>
>> It would be useful to be able to have an option for the `--load` command
>> to only import newer tiddlers - perhaps your first pull request for the
>> Node.js edition?
>>
>>
> First I have to understand git better.  Currently I'm messing things a
> lot. Sorry about that :-P
>


> Where is that option managed? Is part of the core? Is it written in JS I
> suppose. Could you give me a point to look at?
>

The code for the load command is here:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Fmodules%2Fcommands%2Fload.js


> 3. Is possible to tell the core to export a new offline snapshot every
>>> time a new tiddler is created?
>>>
>>
>> I guess you mean each time a tiddler is modified? Anyhow, no, that isn't
>> directly supported at the moment, although it would be straightforward to
>> write a module to do it. Writing the offline snapshot is a time-consuming
>> operation; you'd probably want to have some throttling so that the snapshot
>> generation only occurs every 60 seconds (say).
>>
>> Here are you talking about within TW or a external shell script? Maybe it
> could be cool to check every 60 seconds, and if they are significant
> changes, then export the snapshot. But again, I don't know if you refer to
> a shell script or a wiki module.
>

Right, that's what I'm suggesting: update the snapshot whenever a tiddler
changes, but throttle it to only save once every minute.

Best wishes

Jeremy.



>
> Regards.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to