TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.04k stars 1.19k forks source link

[IDEA] Resolve inconsistencies between cascade filter run prefix and file system path filters #8544

Open saqimtiaz opened 2 months ago

saqimtiaz commented 2 months ago

The implementations of the cascade filter run prefix and the mechanism used to apply the $:/config/FileSystemPaths filters are very similar but different. This can lead to confusion for end users over which variables are available and how the filters are evaluated. We should investigate whether we can evaluate $:/config/FileSystemPaths as a cascade filter run, or re-using the code from the filter run prefix, without breaking backwards compatibility.

The differences include whether the title passed to the cascade is available in the variable currentTiddler and also the availability of global variables. See #8561 and #8520

If this proves not to be possible, we should explore making the two implementations are similar as possible, for example by setting the variable currentTiddler to the title of the tiddler being evaluated in $:/config/FileSystemPaths