Sii
1
I’ve just started playing around with modifying a wiki from the command line with the WebServer API.
Here is my HelloWorld example for creating a new tiddler:
curl -X PUT "http://localhost:8080/recipes/default/tiddlers/HelloWorld" -H "x-requested-with: TiddlyWiki"
It creates the tiddler, but I still have to manually refresh the tab showing http://localhost:8080 in order to see the change.
Is is possible to have my changes “load” immediately, so that I can search and view the new tiddler without having to refresh the page manually?
Sii
2
I have now learned that the changes do sync, but at a 60s interval by default. For anyone who had the same question as me you can modify the interval with a hidden setting: https://tiddlywiki.com/#Hidden%20Setting%3A%20Sync%20Polling%20Interval
You can add a custom server-sent event API endpoint to auto-push the latest changes, or let the client immediately fetch them.
Or https://github.com/tiddly-gittly/TidGi-Desktop Have build-in support for this.