List-links excluding specific Tiddlers

I am trying to get a list of links to a subset of tiddlers, that is, those with a specific tag but excluding those with a specific word in the Title.

Can this be done with list-links? i.e. something like this (which does note work!)

<<list-links "[tag[property]] -[title[Template]]">>

Do point me to a documentation or help page if there is one on this.

Thanks.

1 Like

try `<<list-links “[tag[property]!search:title[Template]]”>>

you can best try out your filters in the advanced search tiddler (button to the right of the seach text field.

Docu : https://tiddlywiki.com/static/search%20Operator.html

Thank you. I dropped the “ and ” as they seemed to create a blank row at the begining and end of the list with just that character in them. Otherwise it works.

Now, I cannot see the ‘advanced search tiddler (button’ on that page.
There is a link to Learn more about how to use Filters
at the foot of that page there is a link Advanced Search
but the page is missing and returns “404 File not found”!

You’re on the static pages, which are to help goo-gal find things. It’s better to use the actual, dynamic site. So you might start at https://tiddlywiki.com/#search%20Operator

Your original example should have worked. You will need to explain what you mean by “does not work”.

For example, you can try this at tiddlywiki.com:

<<list-links "[tag[HelloThere]] -[title[Discover TiddlyWiki]]">>

However, the use of the “title” filter operator isn’t necessary. So you could just say:

<<list-links "[tag[HelloThere]] -[[Discover TiddlyWiki]]">>

[title[Discover TiddlyWiki]]

this filter looks for a complete match of the title name, right? I understood @myfta was looking for “Titles containing [x]” or rather the exclusion thereof - that’s why i suggested search instead

@myfta I was referring to the advanced search in your local wiki - as you want to test your filters against your own tiddlers.
It’s the magnifier icon to the right of the search text input.

The last tab (Filter) on the tiddler that opens up lists the results of any filter you put in - good for quick testing

I wanted to exclude Tidlers that had the word “Template” in the title, so although it ‘works’, it returns all Tiddlers with the tag “property” and doesn’t exclude the “Template” ones.

You’re right. I misunderstood. Or misread. Eyes.

You only need to make sure that the “template” is a suffix or a prefix. See: https://tiddlywiki.com/#prefix%20Operator

Then try this:

<<list-links "[tag[a]] -[suffix[template]]">>

or

<<list-links "[tag[a]] -[prefix:caseinsensitive[template]]">>

@pmario thank you for those, they work rather well in my usecase.