[tw] Reload .tid from disc without rebooting Node server?

2015-09-01 Thread Ben H.
Is there a faster way to load changed tiddlers from disc into the browser without restarting the Node server? Best of all would be a way to have the server monitor for changes to files on disc and push those changes to the browser, but I don't see anything in the code for that. -- You receiv

[tw] Reload .tid from disc without rebooting Node server?

2015-09-01 Thread Danielo Rodríguez
Not yet. A re-writing of the sync module would be needed for that -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post

[tw] Reload .tid from disc without rebooting Node server?

2015-09-01 Thread Ben H.
Dang. Is there any functionality to push changed tiddlers from server to client? -- 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 tiddlywiki+unsubscr...@googlegroup

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-01 Thread Jeremy Ruston
Hi Ben On Tue, Sep 1, 2015 at 6:53 PM, Ben H. wrote: > Dang. Is there any functionality to push changed tiddlers from server to > client? > This is an area that needs working on. Part of it, as Danielo mentioned, is a new file system sync adaptor that can watch for changes in the file system an

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-02 Thread Ben H.
Alright, I got fs.watch printing console messages anytime a file in the tiddlers directory changes. Problem is, fs.watch is reporting each change twice. node-watch seems to be what most people use instead of ns.watch directly, but is there a way to include a node module without forcing the user

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-02 Thread Danielo Rodríguez
I'm not sure what do you mean, since I don't know the modules you are mentioning. But, one of the strengths of TW is that it operates both on server and browser. So you can create a plugin that runs on the node side wrapping any node module of your choice. -- You received this message because

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-02 Thread Ben H.
On Wednesday, September 2, 2015 at 1:42:32 PM UTC-7, Danielo Rodríguez wrote: > > I'm not sure what do you mean, since I don't know the modules you are > mentioning. But, one of the strengths of TW is that it operates both on > server and browser. So you can create a plugin that runs on the node

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-03 Thread Danielo Rodríguez
Who said that it should be shipped by default with tiddlywiki? If you want to add new functionality you should do it through a plugin. Plugin does not mean complicated, it can just extend existing core methods and modules. Is fs.watch default node method? -- You received this message because

Re: [tw] Reload .tid from disc without rebooting Node server?

2015-09-03 Thread BJ
I think you need to use https://github.com/paulmillr/chokidar. I would suggest copying the existing sync adapter code - you can rename it as '$:/plugins/'me'/filesystem and have you own plugin or do a pull request to include your changes in the existing plugin cheers BJ On Wednesday, September