Collect information out of several tiddlers and list them in a new tiddler

142 views
Skip to first unread message

dazel...@gmail.com

unread,
Nov 23, 2017, 9:00:53 AM11/23/17
to TiddlyWiki
Hello there,

I'm using TW (currently v5.1.14) to organize my work-life for about an year now, and I realy love this tool!

The structur of my TW is as following:

Tiddler1 "Project-XYZ"
 - Project started.
 - "ToDo": Write E-Mail to supplyer

Tiddler2 "Project-123"
 - Project almost finished.
 - "ToDo": Complete report

What I would like to implement is a tiddler to summerize the "ToDo"s from all the tiddlers in my TW.
e.g.:

Tiddler3 - ToDos
 - Project-XYZ: Write E-Mail to supplyer
 - Project-123: Complete report

Does someone have an idea how I could "tag" sentences inside tiddlers to collect the tagged information in an other tiddler?

Thanks a lot in advance for your ideas.

BR DaZeller

Mark S.

unread,
Nov 23, 2017, 10:16:33 PM11/23/17
to TiddlyWiki
Make your tiddlers with a standard structure. Tag structured tasks with "Task" and use two fields like

status
todo


Then it becomes easy to extract whatever you want, Something like:

<$list filter="[tag[Task]has[todo]]"/>
<$view field="todo"/> <br/>
</$list>


-- Mark

TonyM

unread,
Nov 23, 2017, 11:48:04 PM11/23/17
to TiddlyWiki
What mark says is the best approach but for your current setup you could use the search filter to find tiddlers containing "ToDo".

You will come to see tiddlers as a basic unit so a project tiddler would define a project, tag it with project and its todo items would be tagged with the project and todo. you will then start tagging todo items with a status either new or wip or done and cycletags will help with that.

regards
Tony

dazel...@gmail.com

unread,
Nov 30, 2017, 8:50:55 AM11/30/17
to TiddlyWiki
Hello Mark,

thanks for your answer.

Can you explain me in detail what you mean, please?
Sorry I think I didn't got the point so far... :-/


Hello Tony,

yes, the Serach, does almost exactly what I want.
When I search for "ToDo" I get every tiddler with an "ToDo" in it. (just the text following to the "ToDo" would be missing)
Is there a way to create a (dynamic) tiddler, showing me the result of the search for "ToDo"?


best regards
Michael

Mark S.

unread,
Nov 30, 2017, 10:22:11 AM11/30/17
to TiddlyWiki
The way that you add structured data to TW5 tiddlers is by use of fields. You can add fields and their values at the bottom of a tiddler when in edit mode for the tiddler.

So you can add a field 'todo' with the name of the todo, and a field 'status' that describes the status.

You can then run simple code (as in prior example) that will let you extract and report 'todo' fields and their contents.

I will digress to say that the old (TWC) tiddlywiki classic had a way to structure the data right inside the tiddler similar to what you describe. There are some plugins that might be able to do what you want without fields. For instance https://tid.li/tw5/hacks.html#Extract%20Macro . There may be other plugins if you search for "section" or "sections" after 2012.

In general, I try to do things working with the native capabilities since it's more likely to withstand changes over time.

Good luck

-- Mark

TonyM

unread,
Nov 30, 2017, 5:55:27 PM11/30/17
to TiddlyWiki
Michael,

I am not so sure what you mean "(just the text following to the "ToDo" would be missing)"

By dynamic tiddler do you mean a search built in a  tiddler rather than the search dialogue we normally use?

See (just the text following to the "ToDo" would be missing)


eg;

<<list-links filter:"[all[tiddlers]search[ToDo]]">>

But I recommend a single tiddler for each todo item, and tag them todo, then you would list them

<<list-links filter:"[tag[todo]]">>

But since each todo item is eventually done tag them with done on completion

<<list-links filter:"[tag[todo]!tag[done]]">>

The ! says NOT

Now if you do not have too many todo items you could list and display todo tiddlers in the same tiddler
Rather than using the list-links macro use <$list 

<$list filter="[tag[todo]!tag[done]]">
<h3>{{!!title}}<br></h3>
{{!!text}}<br>
<hr>
</$list>

In between the ,<$list> and </$list> the field references  {{!!title}} {{!!text}} refer to each todo tiddler (not tagged done), the other stuff is just HTML to format the output.

I have recently discovered the joy of using HTML in tiddlywiki, so the following allows to to click on the title to see the text.

<$list filter="[tag[toto]!tag[done]]">
<details>
  <summary>{{!!title}}</summary>
<blockquote> 
  <p>{{!!text}}</p>
</blockquote> 
</details>
</$list>


Here is a great place to learn or lookup HTML info https://www.w3schools.com/html/default.asp

Regards
Tony
Reply all
Reply to author
Forward
0 new messages