List tiddlers which are using a certain macro (or a similar way)

66 views
Skip to first unread message

Rolf Sonderegger

unread,
Jan 6, 2020, 6:40:25 AM1/6/20
to TiddlyWiki
Hi TiddlyWiki-Community

I am new here and eager to learn.

Goal: For my private wiki (knowledge base) I want to manage my still open questions spread all over serveral different tiddlers.

To mark something as an open question, I defined a macro like this

\define open-question(text:"none")
@@font-size:smaller;//(Frage [[RoSo|Open questions of RoSo]]: $text$)//@@
\end


While writing about a topic or writing a meeting-protocol (or something else) in a tiddler, with this macro can make small annotations.

The goal would be, to have a tiddler, which lists all my open questions (aka tiddlers using this macro).

What I tried already: As I link always to the same page in the macro, I tried to add alle the backlinks to that specific page (Open questions of RoSo), with this list:

<<list-links filter:"[all[current]backlinks[]]">>


But obviously, this does not work with macros (as I found out later in the documentation). I also played around with widgets and variables, but I don't get the concept, with the documenation and examples I found. At the moment I wonder if a path could be, to list pages, which use certain macros - if TW5 keeps track of that information?


So:

1) Is there something already implemented (plugin or so) to achieve the goal stated at the beginning?
2) If not, what would be the concepts of TW5 to use, to achieve the goal?


Thanks a lot
Rolf

Eric Shulman

unread,
Jan 6, 2020, 10:28:44 AM1/6/20
to TiddlyWiki
On Monday, January 6, 2020 at 3:40:25 AM UTC-8, Rolf Sonderegger wrote:
I am new here and eager to learn.

Welcome!
 
Goal: For my private wiki (knowledge base) I want to manage my still open questions spread all over serveral different tiddlers.
To mark something as an open question, I defined a macro like this
\define open-question(text:"none")
@@font-size:smaller;//(Frage [[RoSo|Open questions of RoSo]]: $text$)//@@
\end
While writing about a topic or writing a meeting-protocol (or something else) in a tiddler, with this macro can make small annotations.
The goal would be, to have a tiddler, which lists all my open questions (aka tiddlers using this macro).

As you've discovered, the backlinks[] filter doesn't work the way you want.

But, as you stated, your goal is to find tiddlers that are *using* the <<open-question ...>> macro.

To do this, you could use the search[] filter, like this:
<<list-links filter:"[search[open-question]]">>

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)



Rolf Sonderegger

unread,
Jan 6, 2020, 11:21:37 AM1/6/20
to TiddlyWiki
Goal: For my private wiki (knowledge base) I want to manage my still open questions spread all over serveral different tiddlers.

As you've discovered, the backlinks[] filter doesn't work the way you want.

But, as you stated, your goal is to find tiddlers that are *using* the <<open-question ...>> macro.

To do this, you could use the search[] filter, like this:
<<list-links filter:"[search[open-question]]">>

That was it, thank you. It looks now like this:

<<list-links filter:"[search:text[open-question]] -[all[current]] -[title[Macros]]">>

Two additional filters to reduce the resultset I have added. So the (1) current page - were the link list is displayed - and the page defining my (2) personal macros are not displayed in the list, in case anybody else wants to achieve something similar.

Happy, TWing
Rolf

Reply all
Reply to author
Forward
0 new messages