Tm-remove-tag effectively removes a title from a list field (tags)

Given “tm-remove-tag effectively removes a title from a list field” would it not be complete to have a tm-remove-item/tm-remove-title that effectively removes a title from a named list field? including text fields such as in the case of $:/DefaultTiddlers. The complementary tm-add-tag could be made into tm-add-title as well.

I know action listops is able to do this but it is far more complicated than need be for this basic action. It would further support alt-tag fields and other list-field manipulation.

  • Interestingly listops does not required the fieldmangler widget.

Is the fieldmangler widget something we can remove in 5.4.0?

They don’t seem complicated at all. Consider the following example:

<$button>add to tags       <$action-listops $tags="[[thistag]]"/></$button>
<$button>remove from tags  <$action-listops $tags="-[[thistag]]"/></$button>
<$button>add to list       <$action-listops $subfilter="[[thisitem]]"/></$button>
<$button>remove from list  <$action-listops $subfilter="-[[thisitem]]"/></$button>
<$button>add to items      <$action-listops $field=items $subfilter="[[thisitem]]"/></$button>
<$button>remove from items <$action-listops $field=items $subfilter="-[[thisitem]]"/></$button>

TAGS={{!!tags}}

LIST={{!!list}}

Notes:

  • $tags=... is equivalent to $field=tags $subfilter=...
  • $subfilter=... defaults to using $field=list

-e

1 Like

I understand what you are saying, but add $tiddler then leverage variables or references it just gets more complex. I was building an easier way to leverage the “Extended Listops Filters” but thought the basic add/remove list field items could be simpler, no need to know its subfilter.

In some ways I am just pointing out an inconsistency, the more inconsistencies we have, the harder it is, the more we must read the documentation often, until we remember it.