Folks,
Saq's Streams discussed in this now very long thread
<https://groups.google.com/forum/?hl=en#!topic/tiddlywiki/KeVDndcnY0g%5B176-200%5D>
My
last post was;
*Streams is very powerful, yet it also makes use of openly published
methods to generate its list in sub-tiddlers and fields etc...*
- *Thus with a little work you too can build different ways to list your
stream, convert or rename stream tiddlers and a lot more, like make them
appear in separate lists and tables, tag and list only stream items by tag
etc...*
- *In time others can publish stream aware views and tools that build on
streams without making streams any more complex. The sooner streams is
accepted as complete the sooner others can write reliable additions for
streams, confident it will not change under them.*
- *If you look at the default behaviour all the bullets are represented
as subtiddlers under the top tiddlername/20200622044859299 and listed in
tiddlername!!stream-list*
- *list with [prefix[tiddlername]] or
[enlist{stream-tiddler!!stream-list}] which can be put into a recursive
macro to walk the tree, example may follow in new thread.*
Here is an example of leveraging streams with standard tiddlywiki features
and macros. It sets the top level streams tiddler "Prepared Questions" and
treats it like a standard internal toc
\define each-other-level(filter)
<li><$link to=<<currentTiddler>> ><$text text={{!!text}}/></$link></li>
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
\define first-level(filter)
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
Start in TableOfContents<br>
<$tiddler tiddler="Prepared Questions">
<<first-level "[all[current]enlist{!!stream-list}]">>
</$tiddler>
This extended example provides an internbaly navigated way to edit you
stream, also changed
<$tiddler tiddler="Prepared Questions">
to your stream tiddler
Internally navigated Stream with edit currently selected but see focused
subtiddlers.
\define each-other-level(filter)
<li><$link to=<<currentTiddler>> ><$text text={{!!text}}/></$link></li>
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
\define first-level(filter)
<$linkcatcher to="$:/state/navigate">
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
</$linkcatcher>
\end
<table>
<tr>
<td style="width: 40%; vertical-align: text-top;">
<h2>Prepared Questions</h2>
<$tiddler tiddler="Prepared Questions">
<<first-level "[all[current]enlist{!!stream-list}]">>
</$tiddler>
</td>
<td style="vertical-align: text-top;">
<h2>Edit</h2>
<$tiddler tiddler={{$:/state/navigate}}>
{{||$:/core/ui/EditTemplate/body}}<br>
<<first-level "[all[current]enlist{!!stream-list}]">>
</$tiddler>
</td>
</tr>
</table>
What other methods do you have?
Regards
Tony
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/ef2b3ad2-f9eb-49c3-bf28-234ecb676501o%40googlegroups.com.