Wow. As always Tobias, you have provided a wealth of information! Your tip on the setTiddlerTag() method solved two of my problems (I was wondering why my tags list wouldn't update!)
Thanks! On Wednesday, March 6, 2013 12:52:29 AM UTC-8, Tobias Beer wrote: > > Hi Adam, > > Allow me to be picky for a second... > https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/b9mRQ_5JoYk > > ...now back to this thread. > > > As you are on your way to develop a plugin, don't be afraid of the core > code! To look at the core, either open your TiddlyWiki in your preferred > editor or have a look at the components at... > https://github.com/TiddlyWiki/tiddlywiki/tree/master/js > > A lot of the core code is quite self-explanatory, so you realize what > TiddlyWiki actually does. Some stuff, like Wikifier and formatters can be > hard to grasp thouh. > > > As for setDirty, there actually is both a story AND a store method by that > name... > > Story prototype method... > https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Story.js#L470 > > TiddlyWiki prototype method (the 'store' is an instance of this class)... > https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/TiddlyWiki.js#L42 > > It looks like the story method does on a tiddler level, what the store > method does on a TiddlyWiki level. > > I would guess TiddlyKanban has it wrong here as it fires the wrong > setDirty method... which is probably the reason why it tries to fix this > problem using incChangeCount and saveToDiv. Using the story method > setDirty, the former two would not be needed. > > As for changing tags... > http://tiddlywikidev.tiddlyspace.com/#TiddlyWiki.prototype.setTiddlerTag() > > ...in other words, try to avoid messing with the tags array directly. > > > Some tips on how to find your way around the core.... > > 1) store.someFunction > => look for: TiddlyWiki.prototype.someFunction > > ...usually I search 'pe.some' > > ...I do the same for prototype functions of the Story and Tiddler class or > primitive types like Array and String. > > If it's not a prototype function, it may be a static function to the > class, like fetchTiddler > https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/TiddlyWiki.js#L19 > > 2) <<someMacro>> > => look for: config.macros.someMacro > > ...again, I usually search 'os.some' > > 3) globalFunctions like createTiddlyElement > => look for: someGlobalFunctionFoo = function(){} > => or: function someGlobalFunctionFoo(){} > > ...thus, you could search 'ion some' or 'Foo =' > > Hope that helps, Tobias. > -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

