Part of the security structure of the browser is limited access to the file 
system. So basically you can only export/save one file at a time from 
within a browser page.

A workaround would be to export your sorted tiddlers as a JSON file. This 
should be 'diffable' .

Another possibility is to use the zip plugin to save a single zipped file. 
Then you could have a repeating process on the outside that locates the zip 
file, unzips, adds, commits, pushes.

On Friday, December 10, 2021 at 7:03:11 AM UTC-8 willw wrote:

> Does anyone have a solution for this yet?
>
> I'm looking for a way to save tiddlywiki as individual tiddlers directly 
> to git and GitHub (where the built-in GitHub saver saves the single-file 
> tiddlywiki to a git service).
>
> The single-file tiddlywiki doesn't track well in git, with big diffs for 
> small core changes. It's also hard to trace back which tiddlers were 
> changed, and autosave seems to push empty commits.
>
> Locally, the node.js version could be made to save to a git repo, perhaps 
> using a library like https://isomorphic-git.org, with changes staged 
> locally until a 'save' commits them. Seems like it could work from 
> single-file too, via browser storage?
>
> I'm considering a hacky workaround for now; using the single file GitHub 
> saver to trigger a GitHub action which runs node.js tiddlywiki to explode 
> out the tiddlers and commit them. The single-file commit can be removed if 
> used solely for saving. Then it'd be handy to have the opposite action too 
> -> build a single-file from the tiddlers.
>
> This'd be less needed if the single-file tiddlywiki format was more 
> diff-able, so maybe that's an option too.
>
> Any thoughts?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f70b6cb6-edb8-41a0-a12e-5458e8acb436n%40googlegroups.com.

Reply via email to