[tw5] Re: Displaying a tiddler's "root" tag next to the search results?

2020-02-17 Thread A Gloom

>
>
> currently its called the tag search term ToC
> it has type in or select a tag *(both can be kept or one or the other can 
> be removed-- both write to the same temp tiddler)
> a manual edit duplicate toc macro to compare the modified toc macro call* 
> against *(not modified macro, uses default toc macro) -- can be removed
> uses a template tiddler for the edit-text input field to work in the 
> sidebar
>
>
Add:
It reads from the searchbar (and displays it in tiddler) 

it has an interesting output

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1a949ab5-1a5b-4be7-8b03-26899087ef46%40googlegroups.com.


[tw5] Re: Displaying a tiddler's "root" tag next to the search results?

2020-02-17 Thread A Gloom

>
> making it into a sidebar tiddler for temporary ToC's on demand
>

Not entirely sure what to call it but its something and I see potential mad 
coding experiments with it...

currently its called the tag search term ToC
it has type in or select a tag *(both can be kept or one or the other can 
be removed-- both write to the same temp tiddler)
a manual edit duplicate toc macro to compare the modified toc macro call* 
against *(not modified macro, uses default toc macro) -- can be removed
uses a template tiddler for the edit-text input field to work in the sidebar


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e6062d67-afa4-44aa-a9af-795796a85f6d%40googlegroups.com.


#sidebar tagsterm toc template.tid
Description: Binary data


tag searchterm ~ToC.tid
Description: Binary data


[tw5] Re: Displaying a tiddler's "root" tag next to the search results?

2020-02-16 Thread A Gloom
very interesting Mark-- it shows branching of the search results...

making it into a sidebar tiddler for temporary ToC's on demand

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4bfe43e5-ac03-4315-bc96-65382f3f1547%40googlegroups.com.


[tw5] Re: Displaying a tiddler's "root" tag next to the search results?

2020-02-16 Thread TonyM
Luca,

If I understand this correctly I think the answer is the kin 
filter https://bimlas.gitlab.io/tw5-kin-filter/

Dropping, save and reload this on tiddlywiki.com

Now I put this in a tiddler tagged  $:/tags/ViewTemplate
<$list filter="[kin]">



Every tiddler will not display its "kin" if any.

 lets pick a tiddler somewhere lower down in the TOC eg DragAndDropMechanism
The Kin ar

Drag and Drop
DragAndDropMechanism 

Features 

Importing Tiddlers 

Mechanisms 

Reference 

TableOfContents 



Now you could filter this result for tiddlers that you wish to consider a 
root.

I can explain this in more detail for a specific case but I think you would 
get a lot more from this by simply learning the power available to you of 
the kin operator.

Note you can ask just for ancestors and not descendants and a lot more, the 
key to such organisation can also be how you have added information to your 
tiddlers that you can use as additional filters. 

Regards
Tony

See the readme/examples in the plugin itself. But lets say you had 
[kin]

On Monday, February 17, 2020 at 3:16:47 AM UTC+11, Luca Dorigo wrote:
>
> Hi guys!
>
> I've been using Tiddlywiki extensively for notetaking in university over 
> the last 3 years. 
> As the amount of tiddlers grew, the search results became harder and 
> harder to read - a search with a relatively common word now easily yields 
> 20+ results:
>
> [image: Screenshot 2020-02-16 at 17.04.53.png]
>
>
> All of my tiddlers are organized using tags, in a tree-like structure. 
> Usually there is one "root" tiddler for each course that I am or have been 
> taking, then each chapter/topic in that course is tagged with the course 
> name, subtopics are tagged with their main topic, and so on. For example:
>
> [image: Screenshot 2020-02-16 at 17.07.21.png]
>
>
> I would like to modify the search results so that I can see, next to the 
> title of the result, which course (i.e. "root tag") it belongs to. The 
> problem is that the leaves in my tag tree (so for example, the "Sannon-Fano 
> Algorithm" tiddler in the picture above) have no direct link to the related 
> course, so there's no way to simply express that in wikitext (that I'm 
> aware of). Could you give me some pointer as to what the best way would be 
> to accomplish this?
>
> The only viable option I thought of is to run a bash script to recursively 
> process all tiddlers in my tiddlers folder, to add a field `root_topic: 
> [[Root Topic Title]]` to each and everyone of them. Then, for all future 
> tiddlers, I can manually (or automatically) add this field to point to the 
> relevant root tiddler. I don't particularly like this option though so I 
> was hoping there's some more idiomatic way to do it :-)
>
> Thanks!
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fbafb903-52b9-42d3-b130-e337cdfd3600%40googlegroups.com.


[tw5] Re: Displaying a tiddler's "root" tag next to the search results?

2020-02-16 Thread 'Mark S.' via TiddlyWiki
Instead of attempting to modify the existing search, and assuming your have 
master tag for classes, you could make your own search based on the TOC 
macro:

<$macrocall $name="toc" tag="TableOfContents"  
sort="search{$:/temp/search}"/>

You would change TableOfContents to whatever you're root tag is of course. 
This uses the "sort" attribute to sneak in search criteria, using the 
existing search box.


On Sunday, February 16, 2020 at 8:16:47 AM UTC-8, Luca Dorigo wrote:
>
> Hi guys!
>
> I've been using Tiddlywiki extensively for notetaking in university over 
> the last 3 years. 
> As the amount of tiddlers grew, the search results became harder and 
> harder to read - a search with a relatively common word now easily yields 
> 20+ results:
>
> [image: Screenshot 2020-02-16 at 17.04.53.png]
>
>
> All of my tiddlers are organized using tags, in a tree-like structure. 
> Usually there is one "root" tiddler for each course that I am or have been 
> taking, then each chapter/topic in that course is tagged with the course 
> name, subtopics are tagged with their main topic, and so on. For example:
>
> [image: Screenshot 2020-02-16 at 17.07.21.png]
>
>
> I would like to modify the search results so that I can see, next to the 
> title of the result, which course (i.e. "root tag") it belongs to. The 
> problem is that the leaves in my tag tree (so for example, the "Sannon-Fano 
> Algorithm" tiddler in the picture above) have no direct link to the related 
> course, so there's no way to simply express that in wikitext (that I'm 
> aware of). Could you give me some pointer as to what the best way would be 
> to accomplish this?
>
> The only viable option I thought of is to run a bash script to recursively 
> process all tiddlers in my tiddlers folder, to add a field `root_topic: 
> [[Root Topic Title]]` to each and everyone of them. Then, for all future 
> tiddlers, I can manually (or automatically) add this field to point to the 
> relevant root tiddler. I don't particularly like this option though so I 
> was hoping there's some more idiomatic way to do it :-)
>
> Thanks!
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/40cced22-3a70-4b68-be30-e33e6b40d18e%40googlegroups.com.