Hi everyone ! I was trying to use the contrastcolour macro in a stylesheet and I noticed that using the color macro shorthand as input was not working :
Note : I’m tagging this post with “developers” because this seems like a very technical aspect of tiddlywiki, but let me know if this is not appropriate and I’ll change it, or feel free to edit my post.
Parse trees for macro definitions that don’t use $x$ or $(x)$ can also be cached since v5.1.23 … So only the wikify widget should be used carefully.
Reduce the number of possible results as soon as possible
A working filter is better then a probably fast one which is broken
add 1)
Filters are evaluated from left to right. So “soon” means “at the start” of the filter string.
Most operators by default start with [all[tiddlers]...] even if that’s not needed to write.
TW does implement some “magic” for convenience reasons. Eg: [tag[HelloThere]] is interpreted as [all[tiddlers]tag[HelloThere]]
So it’s good to read the docs and experiment with filters a little bit. …
add 2)
There is no need to start with the “most performant” solution all the time. Work needs to get done. right?
So if something is shown by “user request” there is no problem if the result needs half a second to show up. …
If a filter delays user text input by half a second per key-stroke. … That is a problem. … So UI elements that are always shown and long visible lists need some attention.
Awesome ! I dont think it’s possible to achieve what I want without using variable text substitution so I think I will use the filter approach, thanks !