[tw5] Re: Breaking up very long runs in a filter?

2020-10-02 Thread amreus
Just to add a hopefully helpful example. You can store filters not only as macros, but in fields and data tiddlers. While learning and experimenting with some wikis I was inconsistent in my use of tags. I used a data tiddler to define filters until I got things cleaned up and simplified.

[tw5] Re: Breaking up very long runs in a filter?

2020-09-30 Thread Joshua Fontany
As Tony mentioned, subfilters have to be "complete filter runs", not just a series of operators. Try this, with the enclosing square-brackets: \define obsname() [contains:ascend.observation.name {$:/ascend/state/observation.name.selected}] \end "subfilter" in your main filter will then pass

[tw5] Re: Breaking up very long runs in a filter?

2020-09-30 Thread TW Tones
Cade, Sub filters need to be full syntactically correct filters in their own right, in fact this may allow you to test them independently of your larger combined filter. Subfilters that respond to the filters so far are appended as such restoffilter]subfilter] <= end of run

[tw5] Re: Breaking up very long runs in a filter?

2020-09-30 Thread Cade Roux
You have an example I can look at somewhere? I just tried to extract one of the filters and it doesn't appear to be working - probably because of the curlybracket reference to the value of another tiddler set by the dropdowns? \define obsname()

[tw5] Re: Breaking up very long runs in a filter?

2020-09-30 Thread Joshua Fontany
You can define sections of that filter as macro definitions, and then call them with "subfilter". I.e. "[all[tiddlers+shadows]tag[MyTag]subfilter subfilter sort[]]" Define them at the start of the tiddler which is using the filter, or define them in other tiddlers and import using the