One of the things I would like to emphasize is that, the entire workflow of 
Streams is built on fields and wikitext and re-usable widgets. There is no 
blackbox logic that is obscured from the user.

So don't be too hesitant to dive in and try to tweak/adapt things to your 
liking.

For example, there have been a few requests for the first line of text to 
be the title of new tiddlers. This can't currently be done as you type, but 
it would be easy to do so after the fact. It is no different from 
manipulating a bunch of tiddlers.

This code, placed in the demo, will create a button that renames all the 
child tiddlers of Roadmap, to use the first line of text as their titles.

\define rename-children()
<$list filter="[enlist{!!sq-bullets}]">
<<rename-children>>
</$list>
<$wikify name="new-title" text={{{ 
[<currentTiddler>get[text]split[\n]first[]] }}}>
<$list filter="[<new-title>!is[blank]]" variable="_NULL">
<$action-sendmessage $message="tm-rename-tiddler" from=<<currentTiddler>> 
to=<<new-title>>/>
</$list>
</$wikify>
\end

<$set name="currentTiddler" value="Roadmap">
<$button>rename Roadmap
<$list filter="[<currentTiddler>has[sq-bullets]]">
<$list variable="count" filter="[enlist{!!sq-bullets}count[]!match[0]]">
<<rename-children>>
</$list>
</$list>
</$button>
</$set>

Cheers,
Saq

-- 
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/b840c4c7-79b5-45c2-845d-ad0bffee2f3bo%40googlegroups.com.

Reply via email to