Hi Haakon The reason that TW5 didn’t include bidirectional sync with the filesystem originally is that when TW5 was created Node.js was very new and the file system watching APIs didn’t work properly across all platforms.
Since then, a more subtle obstacle to implementing the feature has been that we’ve gradually added features that apply relatively complex processing to tiddler files as the contents are read during startup and the wiki is built (for example, see the “tiddlywiki.files” feature). That processing is in general not reversible so the only route to supporting direct file system changes is with the introduction of a new wiki folder format, which we’d see as a big change. I’ve simplified the docs to try to make things clearer: > Note that TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> on Node.js doesn't > currently support directly modifying the tiddler files via the file system > while it is running. The server must be restarted in order to for changes to > take effect. The recommended way to interact with a running wiki is via the > HTTP or JavaScript <https://tiddlywiki.com/#JavaScript> APIs. https://tiddlywiki.com/#TiddlyWiki%20on%20Node.js <https://tiddlywiki.com/#TiddlyWiki on Node.js> Best wishes Jeremy. > On 18 Mar 2020, at 11:12, Haakon Robinson <[email protected]> wrote: > > Hi! > > While looking around for info on the node.js server, I found this > <https://tiddlywiki.com/static/TiddlyWiki%2520on%2520Node.js.html>: > > There are a few file system limitations you should be aware of that are > related to how TiddlyWiki <https://tiddlywiki.com/static/TiddlyWiki.html> was > designed: > The best, most general way to interact with a running wiki is via the HTTP or > JavaScript <https://tiddlywiki.com/static/JavaScript.html> API, rather than > manipulating the file store directly > Any modification to the contents of the wiki folder (e.g. images) might thus > sometimes require that your restart the node.js server > TiddlyWiki <https://tiddlywiki.com/static/TiddlyWiki.html> might support > manipulating the file store directly in the future > > I enjoy editing things with vim, so this got my interest. I was wondering if > someone could expand on why synchronising changes to the file store directly > would be challenging, and what would it take to implement? > > Haakon > > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/0c395576-0588-42f4-96fb-73d371e2e89d%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/0c395576-0588-42f4-96fb-73d371e2e89d%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/1A785E59-78DE-4344-8715-32624C1AD2E0%40gmail.com.

