Is there a possibility to look for links in other fields than text?

Hello Tiddlywikians,
is there a possibility to look for links in other fields than in the text?
The Links-Operator https://tiddlywiki.com/#links%20Operator only searches there, it would be nice to be able to specify it to look in other fields as well.

Best wishes Jan

How about this

<$list  filter="[<currentTiddler>get[myfield]enlist-input[]]" >

</$list>
1 Like

May be the relink plugin can help here. It is able to relink links in fields. So it will find them and it has a “Relink References” tab in the tiddler info-area.

May be the “Demo : Fields” tab tells you more

2 Likes

Here’s one that deals with straight up (non-pretty) links (tiddler test with field also test):

\define sr() \[\[(.+?)\]\]

<$list filter="[[test]get[test]search-replace:g:regexp<sr>,[&&&&^^^^$1&&&&]split[&&&&]removeprefix[^^^^]]" />

Example text:

Welcome to TiddlyWiki, a unique [[Philosophy of Tiddlers]] notebook for [[Creating and editing tiddlers]], [[Structuring TiddlyWiki]] and [[Sharing your tiddlers with others]] complex information.

Output:

Philosophy of Tiddlers
Creating and editing tiddlers
Structuring TiddlyWiki
Sharing your tiddlers with others

1 Like

Thanks Mohammad, Mario and Mark.
I will use Mark’s solution, because I can use it to build buttons which was my intention.
I will have to get better in RegEx solutions becaus they are very powerfull.

Best wishes Jan

@JanJo f you are aware of what fields are list fields you can just “enlist them”. To search all fields for links seems to be using a jackhammer when you could have just used an awareness of what each field is used for.

I also wonder what has bought you to this circumstance? Something just does not feel right. Of course the reverse is easy, given a tiddler title, use the "search operator * " all fields to find that title.