[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-27 Thread Felix Küppers
Hi Danielo, Glad that you ask :) Yes, it's related to my proposal at https://groups.google.com/forum/?hl=de#!topic/tiddlywikidev/UafAzk5Bt7k. It's a two level project: *First Step:* I will introduce a mechanism to explicitly link tiddlers and visualize them as nodes on a canvas. Motivation:

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-27 Thread Danielo Rodríguez
Hello Felix, Glad you like my plugins. I was in a similar situation that you are currently when I develop them: I use TW a lot and I missed those kind of features. Your plugin is definitively something that I also miss a lot, but I don't have the time to spend it developing, so glad to see

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-27 Thread Felix Küppers
Hi Danielo Glad you like my plugins. I was in a similar situation that you are currently when I develop them: I use TW a lot and I missed those kind of features. I know, I read some of your old discussions :) Very helpful In one you said: I discovered that the navigator widget is

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-26 Thread Danielo Rodríguez
Félix you have triggered my curiosity. What are you working on? -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-26 Thread Danielo Rodríguez
Maybe is this?https://groups.google.com/forum/m/#!topic/tiddlywikidev/UafAzk5Bt7k -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving emails from it, send an email to

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-24 Thread Felix Küppers
Hi BuggyJ, Your answer brought me quite far :) thank you. it was not easy to understand that it's not about listening to events, but to compare changes and trigger a refresh or not. Unfortunately, the changedTiddlers object does not provide information if a tiddler was renamed or deleted.

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread Felix Küppers
Hello BJ, thank you for your response, you helped me quite a lot with your answer, however, I am still stuck a bit :( Putting $taskgraph/$taskgraph into a tiddler instantiated the object. But isn't it possible to start the widget automatically after everything else has booted? Similar to init

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread TheDiveO
Hi Felix, if you need to do something during startup once, then widgets are the wrong thing. Module-type startup would come to my mind here, albeit I'm unsure as to whether they are would you need here. What exactly do you want to achieve? This is important, as TW5 has so many different module

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread Felix Küppers
Hi TheDiveO, Well to put it shortly: My Plugin should insert a canvas into the dom automatically at startup and then register listeners for save and delete events of tiddlers (maybe some other events too). Tiddlers that possess a certain tag are drawn onto the canvas at startup. Everytime

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread TheDiveO
From your description I would say that startup modules are not what you are looking for. Your initial attempt using a widget seems much more plausible. You probably want your canvas to be in a tiddler and not somewhere else. One thing to decide on is whether you want to track tiddlers or their

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread TheDiveO
Looking at https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/syncer.js#L36 I see that you need to register an event listener with the wiki object: $tw.wiki.addEventListener(change,function(changes) {...}); This is different from the widget-related events you were probably

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread Felix Küppers
Hi TheDiveO, From your description I would say that startup modules are not what you are looking for. Your initial attempt using a widget seems much more plausible. You probably want your canvas to be in a tiddler and not somewhere else. No, the canvas is displayed outside any tiddler at a

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread Felix Küppers
Sorry, I didn't notice your message while write my own message. Looking at https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/syncer.js#L36 I see that you need to register an event listener with the wiki object: $tw.wiki.addEventListener(change,function(changes) {...});

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread BJ
Hi Felix, firstly you are looking in the wrong place, look at the list widget - it dynamically re-creates elements in a list when tiddlers it contains are updated and deleted. You will see that it gets the information about tiddler updates thru the refresh mechanism. Secondly, tiddlers can be

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-23 Thread Felix Küppers
Hi BJ, I will take your advice and give it a chance tomorrow! Good night Felix On Thursday, October 23, 2014 9:18:31 PM UTC+2, BJ wrote: Hi Felix, firstly you are looking in the wrong place, look at the list widget - it dynamically re-creates elements in a list when tiddlers it contains

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-22 Thread BJ
Hi Felix, the message hello world will appear once when the tiddler containing you code is loaded. The creating object will only appear when you use your widget - you need to put $taskgraph /$taskgraph into to some tiddler then view that tiddler (this will have once you have finished editing