Regexp question (beat Roam at its own game)

46 views
Skip to first unread message

David Gifford

unread,
Jan 25, 2020, 10:50:13 AM1/25/20
to TiddlyWiki
How would I do the following?

1) List all the tiddlers, whether system or non-system, that have the title of the current tiddler in their text field.

2) display just the lines, not wikified, from those tiddlers that contain the title of the current tiddler

David Gifford

unread,
Jan 25, 2020, 11:45:07 AM1/25/20
to tiddl...@googlegroups.com
Here is what I came up with for the first part:

''References in other notes:''<br>

<$list filter="[!is[system]regexp:text{!!title}sort[title]] [is[system]regexp:text{!!title}sort[title]] -[is[current]] -[[$:/HistoryList]]"><$link><span class="graybox"><$transclude field="text" mode="block" /></span></$link></$list>

Now I just need to know how to display the context, in the listed tiddlers, of the mention of the current tiddler's title.

David Gifford

unread,
Jan 25, 2020, 12:42:27 PM1/25/20
to TiddlyWiki
I would also be willing to consider the following, if it is simpler:

Transclude the entire listed tiddlers, and highlight the mentions of the tiddler title referenced from them.
Reply all
Reply to author
Forward
0 new messages