Folks,
I am just doing an exploration of apparent limitations within tiddlywiki that I wish to look at documenting within tiddlywiki.
There are a number of Filter Operators that use a suffix to provide additional parameters to that filter operator. A handful just change the way the filter operator works and would be unlikely to need to be replaced with a variable value.
There is however Filter Operators that use a suffix to provide a fieldname or integer, and some filter operators that have rich suffixes that could need to be sourced from a variable or transclusion of a value in a config tiddler.
- I am looking at documenting a method to permit designs where one or more suffixes to a Filter Operator, can be provided programmatically as a variable or a reference to a title/fieldname
- I believe the workaround involves using backtick operators to form the required filter then provide that as a parameter to a filter parameter on a widget such as $list.
A better solution?
However I am posting here in the developer forum to see if we could instead keep it simple for users to add to the filter operator syntax to allow a suffix to be set to the value in a variable and/or tiddler reference (by transclusion).
- This of course requires a core change
- This may allow a lower cognative load to provide programaticaly determined suffixes to a filter operator.
The following is a list of operators that may require such a facility in no particular order;
suffix Operator
search-replace Operator
search Operator
sameday Operator
replace Operator
removesuffix Operator
removeprefix Operator
regexp Operator
putlast Operator
putfirst Operator
putbefore Operator
putafter Operator
prepend Operator
prefix Operator
move Operator
match Operator
jsonset Operator
insertbefore Operator
insertafter Operator