Hi,
 

> Okay I'm looking at trying to build a plugin to do it,
> but I'll admit I'm having a hard time figuring out how to do it.
>

Understandably... atm it takes some time to dive into the inner workings of 
tw, i.e. "the core". 

Can anyone point me at a way to hook into a tiddler opening or opened event?
>

The thing is, the procedure is not as specifically encapsulated as one 
might think.
Compared to TWC, there isn't quite a process to hook into, no 
*story.displayTiddler()* to hijack.
 

> Figured I'd just put a double click handler on the tiddler body.
>

So, the components that end up creating a tiddler are generic.
There is no underlying code that truly knows of "a tiddler in the story".

The code rather creates widgets, e.g. lists, transclusions, etc...
where the end result is a tiddler in the story
...but that's just one of the ways these things are used.

How to hook into all that is a good question.

There should possibly be another widget,
something equivalent to the link-catcher widget

   - http://tiddlywiki.com/#LinkCatcherWidget
   - $:/core/modules/widgets/linkcatcher.js 
   <http://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Flinkcatcher.js>

Perhaps some *MouseEventWidget* which eventually traps mouse events and, in 
this case, wraps...

   - $:/core/ui/ViewTemplate 
   <http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate>

...so as to register that double-click event. This, of course, meanse that 
any such widget contained within another one of that kind would fire first 
and need an option to specify as to wether or not the mouse event is to 
bubble up the dom, whichever click or move etc. it recognizes.

Also is their any other sort of api documentation rather than 
> http://tiddlywiki.com/dev/index.html
>

Unfortunately, aside from the code, there currently isn't.
However, Jim and I are currently discussing how to best automate all that:

https://groups.google.com/forum/?fromgroups=#!topic/tiddlywikidev/VE4eVzoaReQ

This would be tremendously important to help the likes of you, well, all uf 
us really,
to find core stuff and their relations ...and have a full-blown api 
documentation.

Best wishes, Tobias.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to