@arun I am not familiar with CommandPalette (CP), so this might be a 
question better asked of the responsible developer or other users of the 
plugin, i.e. how to trigger action strings with CP.

You could try adding this in a tiddler tagged with $:/tags/ViewTemplate, 
which should make the button to create the child nodes appear after you 
have created a new case with CP.

\define myactions()    
<$vars nodeSuffixes="Pathology [[X ray findings]] Treatment"
    root=<<currentTiddler>>
>    
<$list filter="[enlist<nodeSuffixes>]">
    <$action-setfield 
        $tiddler={{{ [<currentTiddler>addprefix[/]addprefix<root>] }}} 
        parent=<<root>> 
        text={{{ [<currentTiddler>addprefix[!!]]}}} 
        stream-type="default" />
</$list>
<$set name="new-nodes" 
filter="[enlist<nodeSuffixes>addprefix[/]addprefix<root>]">
    <$action-listops $tiddler=<<root>> $field="stream-list" 
$subfilter=<<new-nodes>>/>
</$set>
</$vars>
\end

<$list filter="[all[current]what[case]!has[stream-list]]">
<$button actions=<<myactions>>>
new case
</$button>
</$list>

Also depending on your workflow, the plugin RelinkTitles may be of interest 
to you: https://flibbles.github.io/tw5-relink/#Plugins%2FTitles

To change the Recent Sidebar to only show the root tiddlers for each node, 
try editing $:/core/ui/SideBar/Recent and changing the contents to:

<$macrocall $name="timeline" 
format={{$:/language/RecentChanges/DateFormat}} 
subfilter="get-stream-root[]"/>

Hope this helps,

Saq

On Tuesday, April 20, 2021 at 11:48:20 PM UTC+2 [email protected] wrote:

> Hi Saq,
>
> I can understand that you might have got busy with your work. No worries.
>
> I had 4 questions.
>
> 1. I will be happy if you can help me to make this template. I tried the 
> code which you gave and its what I want - but how to make the new case 
> button or the template appear automatically in every new case tiddlers. Or 
> can you help to incorporate the code given into the command palette command 
> I created.
>
> 2. Renaming the node is fine for me, although it can be quite a work if 
> there a many child nodes.
>
> 3. With the filter option given in the latest beta version, issue with 
> exporting of a single node tree has been solved.
>
> 4. I have modified my recents tiddler to limit number of entries shown. 
> Still I will be happy if there is a filter to show only the stream root 
> tiddlers.
>
>
> Thanks,
> Arun
> On Monday, April 19, 2021 at 7:07:06 AM UTC+5:30 [email protected] 
> wrote:
>
>> I just made a note to update in ~1 week. Thanks, Saq! Really 
>> appreciate the time you're spending on this. 
>>
>> Best,
>> Rika Sukenik 
>>
>>
>> On Sat, Apr 17, 2021 at 12:47 AM Saq Imtiaz <[email protected]> wrote:
>>
>>> @arun apologies for the very delayed reply, I've had a hectic last 
>>> couple of months and this message slipped through the cracks. Let me know 
>>> if these questions are still relevant and if so, we can discuss them 
>>> further.
>>>
>>> Saq
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "TiddlyWiki" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/tiddlywiki/1jTwdmq8cgI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/80b9ff77-260e-4ea2-94d2-2120f9fe5189n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/80b9ff77-260e-4ea2-94d2-2120f9fe5189n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/5393f070-9b6c-4f27-84a3-67aa97ed27bdn%40googlegroups.com.

Reply via email to