Something I've always wanted in a bookmarking app and which I've yet to see implemented is a way of tracking when I last visited a site where the date is updated whenever the URL is clicked on.
How easy would it be to this with TW5?
[ext actions=variableName[<title>|<url>]]
#2711 invoke actions when clicking external link
Something I've always wanted in a bookmarking app and which I've yet to see implemented is a way of tracking when I last visited a site:
...unless perhaps you nest your link inside the button.
#2711 invoke actions when clicking external link
Another possible solution could be to extend the core ButtonWidget to allow the click event to propagate down to any [ext[<url>]]
it contains. Currently, this appears to be prevented. At least, trying the below on tb5 using the calc macro doesn't work:
\define link() [ext[$(url)$]]
\define logtid() $:/logs/$(url)$
<$vars url="http://google.com">
<$tiddler tiddler=<<logtid>>>
<$button class="tc-btn-invisible">
<<link>>
<$list filter="[<logtid>has[text]]">
<$action-setfield $text=<<calc !!text +1>>/>
</$list>
<$list filter="[<logtid>!has[text]]">
<$action-setfield $text="1"/>
</$list>
</$button>
<$link><$view field="title"/></$link>
</$tiddler>
</$vars>
I guess you have noticed by now that, no matter how you turn it,
there currently is no way to attach some custom button action to external links.
At least, that is what experimenting will make you aware of.
...unless perhaps you nest your link inside the button.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5f705cca-dad2-46bb-9500-d700d53d97b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'd be happy enough to trade off right-clicking. To amplify a little further, probably unnecessarily, I'd be happy to have tiddlers with the following
where the date was updated whenever the corresponding URL was clicked.
Tracking external links can be a tricky business. For example, there's no JavaScript event issued if a user right clicks on a link and selects to open it in a new tab/window. I'd be more inclined to focus the other way around: constructing an action widget for opening a link in a new tab, and then using that within a button.
Tracking external links can be a tricky business. For example, there's no JavaScript event issued if a user right clicks on a link and selects to open it in a new tab/window. I'd be more inclined to focus the other way around: constructing an action widget for opening a link in a new tab, and then using that within a button.
#2711 invoke actions when clicking external link
Did you consider enhancing the ext parser as suggested here?#2711 invoke actions when clicking external link
Best wishes,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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fc4ebbcb-03b6-4ca5-b154-4f99b7def934%40googlegroups.com.
No, I don't want a journal equivalent in TiddlyWiki of the browser history.
Let me walk you through it by describing doing manually what I'd like to automate. Let's say it's Monday, and the 1st day of the month and I wish to do some weekly and monthly visits to some web sites.
First I go to the Weekly Tiddler, and I find for the sake of illustration, a few URLs, each with a date after it:ULR1 dateULR1 dateetc.I click on each URL and then go back and edit the date manually.
Then repeat for the Monthly tiddler. I don't actually do this but if Tiddlywiki could set the date automatically I would organize my bookmarks using TiddlyWiki.
Feedback is very welcome! .. So I can iterate and try to create a simple plugin.
Apologies, I completely missed your post with the downloadable attachment and was responding to a different post. I've now tried it out. First, let me say thanks!
I was initially slightly baffled. Instead ofURL dateYou've madetiddlername comment journalbutton url
Ok, so I created tiddlers and added fields with urls and then clicked on the links for the urls. The web page opened, the journal was updated, but no timestamp was recorded. Then I tried adding a comment and the timestamp was recorded ok. Am I right in thinking that a one step action isn't possible?
Because, well, I don't need to record comments every time I visit a web site! Apart from that it seems very workable and it certainly does what I need. Yes, the last table looks great.
Now that I can see it working it crosses my mind that it might be nice to have a "days since" column as well as or instead of the date, but I could live without it.
This would be handy for things one looks at without any schedule -- just using intuition -- where the actual date doesn't matter that much.
Bravo and thanks again! I'll be happy to try any further iteration. This is something I have wanted FOREVER so I'm really very pleased.
So the 1-click action is discussed, but not available yet. I personally prefer b).
I think it would be easier to implement. I'll have a closer look.
Tobias seems to prefer a). So we'll see :)
So the 1-click action is discussed, but not available yet. I personally prefer b).I think it would be easier to implement. I'll have a closer look.Tobias seems to prefer a). So we'll see :)I have no preference at all.
If a message is the best way to do it,
i.e. "tm-open-external-link" or some such,
then we should do that.
Is that what you have in mind?