Sometimes it works, sometimes it don’t.
I have to test it in the console like
$tw.wiki.filterTiddlers('[[APrivateContent]taggingtree[]search-replace:g[/],[_]search-replace:g[:],[_]addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]',
null,
$tw.wiki.makeTiddlerIterator(
['TitleOfAPrivateTiddler']
)
);
// one-liner for copy&paste for test
// $tw.wiki.filterTiddlers('[[APrivateContent]taggingtree[]search-replace:g[/],[_]search-replace:g[:],[_]addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]', null, $tw.wiki.makeTiddlerIterator(['TitleOfAPrivateTiddler']))
I found some filter works, like this works perfectly but slowly:
(add \n only for readability, in reality they don’t change line)
[!is[system]kin::to[APrivateContent]
addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]
This only count for two levels, but is fast
[tag[APrivateContent]tagging[]]
:or[tag[APrivateContent]]
:and[search-replace:g[/],[_]search-replace:g[:],[_]
addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]
And this doesn’t work
[[APrivateContent]taggingtree[]
search-replace:g[/],[_]search-replace:g[:],[_]
addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]
This doesn’t work too, the input tiddler title is lost, output will always be 'subwiki/private-wiki/APrivateContent'
[tagstree[]match[APrivateContent]
search-replace:g[/],[_]search-replace:g[:],[_]
addprefix[/]addprefix[private-wiki]addprefix[/]addprefix[subwiki]]
I hope there can be a GUI config for this, and I hope only by writing an intuitive filter expression can I put tiddler with filter condition to a folder I assigned.
The first part of file FileSystemPaths filter
- should be a “filter-like operator” that " process the selection of titles that are supplied as their input",
- can not be a [[Selection Constructors|https://tiddlywiki.com/#Selection%20Constructors]]
How to use Selection Constructors in filesystempath is an unsolved problem.