Replies: 3 comments 1 reply
-
It's a parser problem. TWs parser is regexp based. The following info is very simplified. Let's say the default start-marker is
As pointed out in step 3. searching for filter end markers stops at the first marker that looks like the end of a string, this causes some limitation in possible operand names. eg:
Since the filter end-marker is You may say: Just make the end-marker search greedy ... right? That would cause a problem with detecting filter runs like: If the end-marker for filters would be greedy, it would fail to detect 2 tiddlers with spaces here. As I wrote. That's a very simplified description of how the TW filter-parser works. The main goal in the TW code for parser is: "There should be as few different parsers as possible". ... For consistency, simplicity and maintainability. -- But this also causes some limitations. -- Having limited possibilities at end-markers is one of them |
Beta Was this translation helpful? Give feedback.
-
Thinking about it, there is one way we could "fix" it. We could allow parenthesis Of course, one wouldn't be able to use parenthesis for titles that contain in |
Beta Was this translation helpful? Give feedback.
-
@pmario @Jermolene |
Beta Was this translation helpful? Give feedback.
-
Official TW docs, for filter state: Literal filter operands cannot contain square brackets but you can work around the issue by using a variable.
Is there any reason for this? Is it possible to address this in TW 5.2.3?
This will give much more flexibility in writing complex, multi steps filters.
Beta Was this translation helpful? Give feedback.
All reactions