Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide api to read/write single tid file #76

Closed
linonetwo opened this issue Aug 19, 2023 · 4 comments
Closed

Provide api to read/write single tid file #76

linonetwo opened this issue Aug 19, 2023 · 4 comments

Comments

@linonetwo
Copy link
Contributor

linonetwo commented Aug 19, 2023

So we can write a tiddloid-sync-adaptor to lazy-load huge wiki.

And only save html with skinny tiddlers and plugins, this can be done by a save template.

(or maybe just save an empty html, even no need to save html, always use an empty html? I need to check what included in a lazy nodejs wiki generated HTML.)

@linonetwo
Copy link
Contributor Author

linonetwo commented Aug 19, 2023

I can test this in TidGi, if I can use an empty html with a dedicated sync-adaptor, to load nodejs wiki's multiple.tid files and plugin json.

Skinny tiddlers can be loaded by porting related logic from tw core to Java. The only problem maybe loading plugins Jermolene/TiddlyWiki5#7685

@Jermolene do you think this is possible?

@Jermolene
Copy link

Hi @linonetwo yes, I do think that that approach is practical. I tend to prefer using a fully populated HTML file but it's perfectly feasible to use an empty one.

@linonetwo
Copy link
Contributor Author

https://github.com/nathanielknight/tiddly-wiki-server#differences-from-tiddlywiki seems already implement this trick. I will test it in https://github.com/tiddly-gittly/TidGi-Mobile which uses react native, that is much easier for me and GPT to write...

@linonetwo
Copy link
Contributor Author

Implemented in https://github.com/tiddly-gittly/TidGi-Mobile , V0.0.4 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants