-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce new subfilter operator #3508
Conversation
Needs better examples.
Thank you Jeremy! Thanks Mario ExampleAssume you have several macros tagged with myTag and you want to build a table of contents but you want to exclude few tiddlers e.g tid-a, tid-b, tid-c
Another exampleAssume you have several tiddlers tagged with tt and there are some of them ALSO have been tagged with tts, how to build a TOC excluding those tagged with tts"
ReferencesThe main discussion Further talk A bad newsI tried some previous examples of toc macro included in TW 5.1.18pre, some of them broken! For example see: https://tiddlywiki.com/prerelease/#Example%20Table%20of%20Contents%3A%20Simple It seems the toc macro has some issues. Using it raise the red local widow with this error:
toc-selective-expandableThis macro is also returns the Javascript error you can check it on tiddlywiki.com/prerelease |
@kookma ... be aware, that the |
The exclude parameter MUST have |
@Jermolene ... I propose to rethink the TOC macros ... again. IMO it's starting to be a mess. The |
Okay Mario! I will remain and will stop using it for now! In my case I want to use toc-selective-expandable to make table of contents of tiddlers tagged by say myTag but exclude those have also ignored as tag! That's all Thank you |
See this comment by @pmario #3508 (comment)
@pmario But what is in the revised code does not requite |
@Jermolene Thank you Jeremy! |
Hi @kookma The revised code didn't need a In terms of the subfilter operator, I meant that the new subfilter operator built for this fix will go ahead into 5.1.18. I've reverted the changes to the TOC macro. |
Thank you! I hope you could also update the documentation when it appeared in TW 5.1.18 |
@kookma ... Yea .. and that's the problem. It only looks like, as if there is no The name: "exclude" indicates that if you specify One more problem is, that the existing logic can only exclude "tiddler titles" and no "tiddler sets" like As I wrote. The "exclude" parameter was not intended to be publicly visible. ... but the "usecase" to have one is valid. |
IMO OT for the PR, but on topic for the discussion here. See: About existing TOC vs. prerelease TOC performance degrading #3517 |
@pmario Thanks for clarification. For me, I cloned the toc-selective-expandable from TW5.1.17 and changed its name and use it and wait for the final release of 5.1.18 |
Fixes #3505
Needs better examples.