Hello everyone; am a big fan of Saq's Streams plugins; my workflow includes 
a few other things such as Stroll and TiddlyMap (I know, I am asking for 
trouble). I have come across a few quirks and have a few solutions to share.

1. I prefer having the Streams nodes simply numbered rather than numbered 
with a time stamp. The potential solution of using the <$macrocall 
$name="unusedtitle" baseName=<<stream-root-title>>/> template breaks pretty 
quickly.
*steps to reproduce:*
 1) start from empty 5.1.23 (https//tiddlywiki.com); add Streams 0.212 
(https://saqimtiaz.github.io/streams/) (w/ relink)
 2) in the Streams' control panel, change *Template wikified for node title* 
to <$macrocall $name="unusedtitle" baseName=<<stream-root-title>>/> (option 
suggested in Streams' FAQs at https://saqimtiaz.github.io/streams/#FAQs)
 3) create a new Tiddler test, leave empty
 4) add 2 nodes
 5) move the second node as a child of the first node (drag'n drop)
 6) add a 3rd node -> edit mode is activated for two nodes simultaneously
 [image: streams_1.png]

The first workaround that worked for me was to replace the *Template 
wikified for node title* with <$macrocall $name="unusedtitle" 
baseName=<<parent>>/>; alas, it does not work well with the relink and 
relink-titles plugins when renaming (relink-titles does not successfully 
renames the nodes unless the node titles use the / separator?). Not a major 
issue in itself, but the root/node association (by name) is lost when 
looking at the list of all tiddlers (and does complicate future imports of 
specific root tiddlers with their nodes)
*steps to reproduce:*
 1) start from empty 5.1.23 (https//tiddlywiki.com); add Streams 0.212 
(https://saqimtiaz.github.io/streams/) (w/ relink and relink-titles)
 2) in the Streams control panel, change *Template wikified for node title* 
to <$macrocall $name="unusedtitle" baseName=<<parent>>/>
 3) create a new Tiddler test, leave empty
 4) add 2 nodes
 5) rename the root tiddler (and enable Use Relink to update test to mytest 
across all other tiddlers)
 6) verify that relink-titles was not effective by listing *More*->*All 
Tiddlers* 
[image: streams_2.png]

a better solution is to combine the above template with a version that 
includes a / and preserves relink-titles' nifty capabilities. This was 
surprisingly challenging, and there may be simpler solutions I couldn't 
figure out.
*steps to reproduce:*
 1) start from empty 5.1.23 (https//tiddlywiki.com); add Streams 0.212 
(https://saqimtiaz.github.io/streams/) (w/ relink and relink-titles 
https://flibbles.github.io/tw5-relink/#$:/plugins/flibbles/relink-titles)
 2) clone $:/core/modules/macros/unusedtitle.js, name it 
$:/core/modules/macros/unusedtitleslash.js with the following changes (and 
refresh your TiddlyWiki):
- title unusedtitleslash.js in comments (optional)
- title unusedtitleslash.js in exports.name
insert options={prefix:"/"}; before the function's return statement
 3) in the Streams' control panel, change *Template wikified for node title* to 
<$macrocall $name="unusedtitleslash" baseName=<<parent>>/>
 4) create a new Tiddler test, leave empty
 5) add 2 nodes
 6) rename the root tiddler (and enable Use Relink to update test to 
newtest across all other tiddlers)
 7) verify that relink-titles was effective by listing More->All Tiddlers :)
[image: streams_3.png]

2. The match counter needs tweaking if using Streams with the excellent 
Streams-search plugin 
https://saqimtiaz.github.io/sq-tw/streams.html#$:/plugins/sq/streams-search
*steps to reproduce:*
 1) start from empty 5.1.23 (https//tiddlywiki.com); add Streams 0.212 
(https://saqimtiaz.github.io/streams/) (w/ relink) and the excellent 
Streams-search plugin 
(https://saqimtiaz.github.io/sq-tw/streams.html#$:/plugins/sq/streams-search)
 2) create a new Tiddler test, leave empty
 3) add 2 nodes
 4) search for "test" and verify that the match counter is not reflecting 
search results
[image: streams_5.png]

this is quickly fixed by replacing, in $:/core/ui/SideBarSegments/search
<$set name="resultCount" value="""<$count 
filter="[subfilter<primaryListFilter>] 
[subfilter<secondaryListFilter>]"/>"""> 
to 
<$set name="resultCount" value="""<$count 
filter="[!is[system]search{$(searchTiddler)$}sort[title]stream-root[]limit[250]]"/>""">

(warning; there may be unintended side effects with this approach; perhaps 
there exists a more elegant, comprehensive solution)

other than that, I was able to adjust the filters in the 
$:/.giffmex/ViewTemplate/... for Stroll's backlinks and the  
TiddlyTools/Time/SidebarCalendar plugin to also only show the root 
tiddlers' names, based off the example for the Recent tab example provided 
by Saq (https://saqimtiaz.github.io/streams/#FAQs) and feel I have a pretty 
sweet setup now!

cheers, and thanks for the awesome plugins

On Wednesday, 5 May 2021 at 10:13:34 UTC-4 si wrote:

> Thanks Saq - sorry I had not seen that setting.
>
> On Wednesday, 5 May 2021 at 12:25:17 UTC+1 [email protected] wrote:
>
>> @Si
>>
>> @Saq - Totally unrelated question. Is there a way to save and exit a node 
>>> while on mobile? I.e. the equivalent of Ctrl+Enter on a normal keyboard.
>>>
>>
>> Enable the setting called "Exit editing on saving an empty node 
>> <https://saqimtiaz.github.io/streams/#%24%3A%2Fconfig%2Fsq%2Fstreams%2Fexit-on-saving-empty-node>"
>>  
>> and then try hitting the Enter key twice.
>>
>> Another alternative is adding a context menu option (see FAQ). There has 
>> been a fair bit of discussion around this in previous threads and a few 
>> ideas have been trialled but these are the best two options at present.
>>
>

-- 
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/3caba130-1cf9-4a23-b190-5087eb095138n%40googlegroups.com.

Reply via email to