Hi Mike, Relink is indeed a necessary dependency for Streams to handle renaming of tiddlers. I wish there was a way to make it mandatory to have installed, if not installed automatically with Streams.
The get-stream-root[] filter is completely broken. Thank you for making me realize that. I wrote that in about 5 minutes at the end of a long day before posting this version.. I really shouldn't have. I am surprised it works at all! So as to not make the same mistake twice, I'll wait until tomorrow to push a new version. One thought, what makes more sense: [[mytiddler]get-stream-root[]] or [get-stream-root[mytiddler]] ? Note that with the suffix includeall, you can get all the intermediate tiddlers as well, starting with the root and ending with the tiddler you started at.. e.g.: [[mytiddler]get-stream-root:includeall[]] This form makes me wonder if [get-stream-root[mytiddler]] is the way to go, so that the filter can only ever have one input title. Regarding cloning a root tiddler, it will break some of the keyboard and drag and drop behaviour as well. If the desire is to be able to create a node structure easily for things you do frequently, the code and approach I posted for Arun above is probably the way to go rather than cloning tiddlers. If I am misunderstanding the use case, please do elaborate. Regards, Saq On Thursday, April 22, 2021 at 4:08:47 PM UTC+2 [email protected] wrote: > Thank you for your hard work, Saq. I am getting a lot of use out of > streams. > > I played around with get-steam-root on your site. As I understand it, the > use of the relink plugin is recommended/necessary for doing stream-root > tiddler renames and having everything work since the built-in rename > doesn't seem to keep all the connections. Is that the case? The main > functionality of streams works through a standard rename (with the renaming > of all tags and list fields) but get-stream-root breaks because the > "parent" fields don't get updated and returns the input node rather than > the last valid parent found. For instance, given this example stream, > > Parent > |node > ||subnode > |||sub-sub-node > > [[sub-sub-node]get-stream-root[]] will return "sub-sub-node" if "Parent" > doesn't exist (because of deletion or rename). I would have expected it to > go as far as it could and return "node" but maybe just returning itself is > more useful from a diagnostic point of view. > > I'm also playing around with the consequences and handling of cloning the > stream-root to reuse streams for agendas/daily logs. get-stream-root > doesn't detect that extra root (likely outside the scope of your intent) > but there are other ways to detect if something isn't the original root ... > I just need to figure out the new conditional/comparison filters to compare > <currentTiddler> with <stream-list>field:parent. > > /Mike > On Tuesday, April 20, 2021 at 12:59:55 PM UTC-3 [email protected] wrote: > >> Apologies for the delay with getting Streams 0.2 released, the last few >> months have been hectic. >> >> I've found some time to resolve some of the outstanding issues and hope >> to get a new stable release of 0.2 out next week. >> >> Any testing on this new interim version would be appreciated, just to >> help ensure that I haven't accidentally broken anything: >> https://saqimtiaz.github.io/sq-tw/temp/streams-0.21-preview.html >> >> *Changes since the last version posted:* >> >> - Improved detection and error handling for whether codemirror is >> available >> - Removed the indent/unindent swipe behaviour in favour of triggering >> the context menu >> - Added a plugin priority field so other plugins can >> override/customize Streams tiddlers. Hopefully this means people will >> stop >> distributing modified version of Streams which are a real headache in >> terms >> of providing support. >> - Tweaked the CSS for the settings UI to use color palette entries >> where possible >> - Removed the option to double click to exit editing >> - Introduced the filters get-stream-root and get-stream-nodes to make >> it easier to work with Streams tiddlers. >> >> *For anyone including Streams in editions or otherwise distributing the >> plugin:* >> >> - Please do not distribute modified versions of the plugin as this >> leads to my receiving support requests that are impossible to >> troubleshoot >> or manage. >> - If you need to customize the plugin, first look at the >> documentation to see if there is already a facility for extending or >> tweaking the plugin that you can use. If in doubt, ask or request a hook. >> - Otherwise, instead of modifying Streams please distribute Streams >> with your own plugin that overrides select tiddlers in Streams and >> implements the customization that you need. >> >> Regards, >> 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/8c735bf4-1652-4490-a67a-f3f44b602482n%40googlegroups.com.

