Did you know the following will collect most links embeded within the tiddler text field and list them?
<$list filter="[all[current]links[]]">
</$list>
Adding this to the view template gives you summary of all links in a tiddler seperate from the text.
- It will only return the effective title and ignore any prettl links like
[[new name|long tiddlername]]
Question
Is there a simple, or mor complex way we can extract these links and also have access to the pretty name of each link?
Why do I ask?
Because we could use a naming standard in a pretty link such as f1 f2 etc… and use this to handle links selectivly based on this pretty link.
- perhaps we could build an alternate operator that returned the original link eg
[[f1|long tiddler name]]
instead such as[prettylinks[]]
- In this case it will return the full text string of the link not a reduced one.
- Perhaps a clone of the existing link operator modified any JavaScriptors should see $:/core/modules/filters/links.js for a small project.
- But could this also be valid for backlinks and other operators?
I wont spell it out here but I can imagin this opening a whole lot of interesting tricks if we had such a mechanisium.