Hi Yakov,
 

> However, I've found a workaround: first, I make it invisible, that open 
> the target and then actually close the "source" tiddler:
>

Yes, of course! For completeness sake...

/***
> |''Name''|FromTiddlerToTiddlerPlugin|
> |''Description''|closes current tiddler when clicking a tiddlyLink holding 
> the shift key|
> |''Author''|[[Yakov|http://yakov.tiddlyspace.com]]|
> |''Version''|1.0|
> |''Source''|http://your.path#FromTiddlerToTiddlerPlugin|

***/
> //{{{
> onClickTiddlerLinkWithoutShiftKey = onClickTiddlerLink;
> onClickTiddlerLink = function (ev) {
>
>   var el,
>     //close when shift is pressed
>     x = (ev || window.event).shiftKey,
>     //get tiddler dom element
>     tid = story.findContainingTiddler(this);
>
>   //close? => hide dom element
>   if(x) tid.style.display = 'none';
>
>   //open new tiddler
>   el = onClickTiddlerLinkWithoutShiftKey(ev);
>
>   //close? => finally close old tiddler
>   if(x) story.closeTiddler(tid.getAttribute("tiddler"));
>
>   //return new tiddler
>   return el;
> }
> //}}}


Cheers, 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to