On Thu, May 6, 2021 at 6:50 AM TW Tones <anthony.mus...@gmail.com> wrote:
> Mohammad, > > I want to be able to apply a filter when ever referencing tags, in view > and edit templates, and other tag templates. Not necessarily globally. An > example may be a tag pill that only appears if the tag is itself a member > found by the filter. > > Neat idea! > An example may be a tag line that only displays tags pills, for the > current tiddlers "project-name tag" ie a tag on the current tiddler myproj1 > that is also itself tagged by project. > This helps also prevent a cluttered list of tags! > > Regards > Tones > > On Thursday, 6 May 2021 at 00:56:50 UTC+10 Mohammad wrote: > >> On Wed, May 5, 2021 at 1:45 PM TW Tones <anthony...@gmail.com> wrote: >> >>> Mohammad, >>> >>> If you are referring to this >>> <https://groups.google.com/g/tiddlywiki/c/Rjx1qERJ0VI/m/YIlf46mXAAAJ> from >>> eric >>> >>> Here's a customization that does what you want: >>> >>> 1) edit $:/core/ui/ViewTemplate/tags >>> 2) in the <$list> widget, change this: >>> <$list filter="[all[current]tags[]sort[title]]".../> >>> with this: >>> <$list filter="[all[current]tags[]sort[title]] >>> -[enlist{$:/config/HideTags}]".../> >>> 3) create a new tiddler named $:/config/HideTags >>> 4) in the text field of that tiddler, enter a space-separated list of >>> tag names that you want to hide >>> >>> its not quite what I am after, but could lead to it. Using another filter >>> >> >> This only hides the selected tags! but you like to hide also in drop down >> in edit mode! >> >>> >>> Tones >>> >>> On Wednesday, 5 May 2021 at 15:53:06 UTC+10 Mohammad wrote: >>> >>>> >>>> >>>> On Wed, May 5, 2021 at 9:01 AM TW Tones <anthony...@gmail.com> wrote: >>>> >>>>> Folks, >>>> >>>> >>>> Tones >>>> >>>>> >>>>> From my systematic learnings from TiddlyWiki I need to ask if anyone >>>>> has considered this Tag handling feature? >>>>> >>>>> I ask this openly because whilst I could "roll my own solution", it >>>>> shoulds like a good case for updating the core tiddlers to respond if a >>>>> variable is set containing "tag filter". So I wonder if someone has done >>>>> this before or could help me do it. >>>>> >>>>> *Background* >>>>> You may be aware the tag macro, the >>>>> templates {{||$:/core/ui/TagTemplate}} and >>>>> {{||$:/core/ui/EditTemplate/tags}} and {{||$:/core/ui/ViewTemplate/tags}} >>>>> all allow you to list or manipulate tags including with tag pills. >>>>> >>>>> *Extra flexibility * >>>>> There are however times when such a "tool" would be helpful if the >>>>> tags displayed or the tags available in the drop down could be restricted >>>>> using a filter, or when using $:/core/ui/EditTemplate/tags suggests other >>>>> tiddlers (not yet tags) as possible tags. >>>>> >>>> >>>> If we look at TW-Scripts, a very clever solution has been given by Eric >>>> Shulman >>>> >>>> >>>> https://kookma.github.io/TW-Scripts/#Hide%20Tags%20from%20Tagspill%20Drop%20down%20Menu >>>> >>>> >>>> >>>>> >>>>> What do you think? >>>>> Tones >>>>> >>>>> -- >>>>> 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+...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tiddlywiki/1727aee7-990c-4d66-9879-8c22f5d136c1n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tiddlywiki/1727aee7-990c-4d66-9879-8c22f5d136c1n%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 tiddlywiki+...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tiddlywiki/a246e1a4-0944-40bd-b57d-35429df2b55dn%40googlegroups.com >>> <https://groups.google.com/d/msgid/tiddlywiki/a246e1a4-0944-40bd-b57d-35429df2b55dn%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 tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/eb67b2b5-75ae-4ce1-b7ad-b548ebb2c79en%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/eb67b2b5-75ae-4ce1-b7ad-b548ebb2c79en%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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB%2BmnKyfZiWA6ApireR4oV%2BiMZGzbA6uzLUNsdRsR7QQg%40mail.gmail.com.