[Discussion] Additional Tag handling feature(s)

74 views
Skip to first unread message

TW Tones

unread,
May 5, 2021, 12:31:03 AM5/5/21
to TiddlyWiki
Folks,

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.

What do you think?
Tones

Mohammad Rahmani

unread,
May 5, 2021, 1:53:06 AM5/5/21
to tiddl...@googlegroups.com


On Wed, May 5, 2021 at 9:01 AM TW Tones <anthony...@gmail.com> wrote:
Folks,

Tones
If we look at TW-Scripts, a very clever solution has been given by Eric Shulman


 

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.

TW Tones

unread,
May 5, 2021, 5:15:20 AM5/5/21
to TiddlyWiki
Mohammad,

If you are referring to this 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

Tones

TW Tones

unread,
May 5, 2021, 5:54:47 AM5/5/21
to TiddlyWiki
I think like this;

<$set name=tag-filter value=<<tag-filter>> emptyValue="[all[]]">
<$list filter="[tags[]] +[subfilter<tag-filter>] +[sort[title]]">

</$list>
</$set>

Now I now need to find where I may wish to add this.

eg;
<$set name=tag-filter value=<<tag-filter>> emptyValue="[tag[Filter Operators]]">
<$list filter="[tags[]] +[subfilter<tag-filter>] +[sort[title]]">

</$list>
</$set>

Tones

Mohammad Rahmani

unread,
May 5, 2021, 10:56:50 AM5/5/21
to tiddl...@googlegroups.com
On Wed, May 5, 2021 at 1:45 PM TW Tones <anthony...@gmail.com> wrote:
Mohammad,

If you are referring to this 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


 

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.

--
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.

TW Tones

unread,
May 5, 2021, 10:20:21 PM5/5/21
to TiddlyWiki
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.

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.

Regards
Tones

Mohammad Rahmani

unread,
May 6, 2021, 3:24:28 AM5/6/21
to tiddl...@googlegroups.com
On Thu, May 6, 2021 at 6:50 AM TW Tones <anthony...@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!
Reply all
Reply to author
Forward
0 new messages