Collect all links in a text?

I want to list all links that appear in a tiddlers text field. This doesn’t feel like it should be a totally new use case, so I’m hoping there’s some simple solution? Maybe there some regex? Or am I perhaps missing some ready made filter op for this?

Thank you!

Try [all[current]links[]] this finds all hard links in the wiki including those due to camel case if switched on. Soft links that appear due to a widget such as list will not appear.

Similarly [all[current]backlinks[]] will find the tiddlers containing tiddler links back to this tiddler.

As you may know a hardlink can be [[pretty name|tiddlername]] and other forms, they will only be listed with their title.

  • I am working on a way to also retrieve the “pretty name” but at the moment I have to find a way to make use of pretty name|tiddlername, and thus introduce a way to handle this special paired value. Without spooking people :nerd_face:

Ha! Thanks!

(This made me feel like a complete beginner. I’ll try to interpret that as a good thing.)

This regression to naivaty occasionaly happens to me to, I call it a “tiddlywiki block” a bit like “writters bloc” :nerd_face:

Nothing to be ashamed of.

1 Like