Action for Link widget or LinkCatcher Widget or Something Similar

82 views
Skip to first unread message

Mohammad

unread,
Jul 29, 2018, 11:27:08 AM7/29/18
to TiddlyWiki
Is there any way to set some state tiddler or change the value of some fields in a state tiddler when clicking on a link?

I mean I want to store some values in a state tiddler when a link is clicked?



Use case:
 I use KeeBoord plugin for navigation in TW using some global shortcut keys!
I want to track which link is clicked by mouse and use it for updating my status in a state tiddler

Mohammad

Mohammad

unread,
Jul 29, 2018, 11:42:08 AM7/29/18
to TiddlyWiki
Here I can do it for a list of links tagged for example with contact but, I think this is not the correct way!
A similar procedure can be used for other links perhaps through a macro to automate the work! but to me
this is not the optimal and correct way!

<ol>
<$list filter="[tag[contact]]" variable="myTid">
<li>
<$button class="tc-btn-invisible tc-tiddlylink" 
set="!!myfield" 
setTo=<<myTid>>
><<myTid>>
<$action-navigate $to=<<myTid>>/>
</$button></li>
</$list>
</ol>


FrD

unread,
Jul 29, 2018, 12:04:17 PM7/29/18
to TiddlyWiki
Hi,

Put the link inside a button which navigates to the target of the link, as :

<$button class="tc-btn-invisible" to="HelloThere">
<$action-setfield  myfield="HelloThere"/>
<$link to="HelloThere">HelloThere</$link>
</$button>



Regards

FrD

Mohammad

unread,
Jul 29, 2018, 4:29:20 PM7/29/18
to TiddlyWiki
Good hint FrD!

Thank you

TonyM

unread,
Jul 29, 2018, 9:21:18 PM7/29/18
to TiddlyWiki
Here is a lead if you get very serious with this.

To do it for all links I believe you would need to play with the navigation process.

However if you control the list of links you can use action navigate to maintain your own storylist, history list and a selected tiddler title.

The TWOutlier solution does this while using a customised TOC.

Tony

Mohammad

unread,
Jul 29, 2018, 11:08:55 PM7/29/18
to TiddlyWiki
Thanks Tony! I should put more time to see how $navigator works!
Yes, may be I can customize and use my own story and history lists!


Mohammad
Reply all
Reply to author
Forward
0 new messages