{"action":"created","issue":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/3511","repository_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5","labels_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/3511/labels{/name}","comments_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/3511/comments","events_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/3511/events","html_url":"https://github.com/Jermolene/TiddlyWiki5/pull/3511","id":376893550,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MDAxNTQx","number":3511,"title":"Kin filter: Recursively looking for kinship between tiddler titles","user":{"login":"bimlas","id":7034200,"node_id":"MDQ6VXNlcjcwMzQyMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7034200?v=4","gravatar_id":"","url":"https://api.github.com/users/bimlas","html_url":"https://github.com/bimlas","followers_url":"https://api.github.com/users/bimlas/followers","following_url":"https://api.github.com/users/bimlas/following{/other_user}","gists_url":"https://api.github.com/users/bimlas/gists{/gist_id}","starred_url":"https://api.github.com/users/bimlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bimlas/subscriptions","organizations_url":"https://api.github.com/users/bimlas/orgs","repos_url":"https://api.github.com/users/bimlas/repos","events_url":"https://api.github.com/users/bimlas/events{/privacy}","received_events_url":"https://api.github.com/users/bimlas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-11-02T17:04:02Z","updated_at":"2018-11-07T14:38:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/pulls/3511","html_url":"https://github.com/Jermolene/TiddlyWiki5/pull/3511","diff_url":"https://github.com/Jermolene/TiddlyWiki5/pull/3511.diff","patch_url":"https://github.com/Jermolene/TiddlyWiki5/pull/3511.patch"},"body":"Usage examples:\r\n* [Analyzing family/ToC trees](https://groups.google.com/d/msg/tiddlywiki/YZlPGP0qX1o/Qh-sAWEuCQAJ)<br>(uses an older name: `kindred[]` = `kin[]`; `kindredup[]` = `kin::to[]`; `kindreddown[]` = `kin::from[]`)\r\n* [Display](https://groups.google.com/d/msg/tiddlywiki/YZlPGP0qX1o/tcgTCvoJCgAJ)/[export](https://groups.google.com/d/msg/tiddlywiki/YZlPGP0qX1o/Wz0UHBCSCQAJ) only a part of ToC\r\n* [Generate ToC wihtout duplicated entries](https://groups.google.com/forum/#!topic/tiddlywiki/Z98wFWKsHCs)\r\n* [Avoid using many tags unnecessarily](https://groups.google.com/d/msg/tiddlywiki/bL8KKIvL03Y/SWCEjO8-AwAJ)\r\n\r\nDiscussion: https://groups.google.com/forum/#!topic/tiddlywiki/YZlPGP0qX1o\r\nDemo: https://bimlas.gitlab.io/demo/tw5/kin-filter.html\r\n\r\nVoting: https://goo.gl/forms/bywjS7UiuaosfRlR2\r\nCurrent results:\r\n* Would you like to use this filter? \r\n  * 5 yes\r\n* Do you think it should be part of TiddlyWiki itself? \r\n  * 5 yes\r\n* Which name would be the best to describe the behaviour?\r\n  * 3 kin\r\n  * 1 kindred\r\n  * 1 related\r\n\r\n---\r\n\r\nI know the suffix is not used in the usual way, but I think it's the most efficient way to pass certain parameters to the filter. For example, if you passing `from` / `to` as variables, you would not be able to crawl the tree in both directions in a single phrase, you should be writing two separate queries.\r\n\r\n```\r\nIn my way:\r\n<$list filter=\"[kin::from[Filter Expression]kin::to[Filters]]\">...</$list>\r\n\r\nUsing variables (I'm not sure that this would work):\r\n<$var name=\"kin-direction\" value=\"from\">\r\n  <$list filter=\"[kin[Filter Expression]]\">\r\n    <$var name=\"kin-direction\" value=\"to\">\r\n      <$list filter=\"[kin[Filters]]\">\r\n        ...\r\n      </$list>\r\n    </$var>\r\n  </$list>\r\n</$var>\r\n```\r\nSince I want to add more options (\"depth\", \"field contains a single title instead of a list\"), so I understand that the suffix can not be expanded indefinitely, thus the variables will be needed: the options used by all filters (\"field\", \"field contains a single title instead of a list\") could be passed as variables, but for passing options applicable to each filter individuallys, I think the suffix would be the best.\r\n\r\nWhat do you think? Can I use the suffix in this form? If not, what are your suggestions for passing the various options?\r\n"},"comment":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/comments/436644062","html_url":"https://github.com/Jermolene/TiddlyWiki5/pull/3511#issuecomment-436644062","issue_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/3511","id":436644062,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjY0NDA2Mg==","user":{"login":"bimlas","id":7034200,"node_id":"MDQ6VXNlcjcwMzQyMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7034200?v=4","gravatar_id":"","url":"https://api.github.com/users/bimlas","html_url":"https://github.com/bimlas","followers_url":"https://api.github.com/users/bimlas/followers","following_url":"https://api.github.com/users/bimlas/following{/other_user}","gists_url":"https://api.github.com/users/bimlas/gists{/gist_id}","starred_url":"https://api.github.com/users/bimlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bimlas/subscriptions","organizations_url":"https://api.github.com/users/bimlas/orgs","repos_url":"https://api.github.com/users/bimlas/repos","events_url":"https://api.github.com/users/bimlas/events{/privacy}","received_events_url":"https://api.github.com/users/bimlas/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T14:38:43Z","updated_at":"2018-11-07T14:38:43Z","author_association":"CONTRIBUTOR","body":"I forgot to write why I need it:\r\n\r\n> * \"Type\" of field, treat as a single title or a list (usefull for PMario's [tocP](https://wikilabs.github.io/editions/tocP/), `single`/`list`)"}}
{"actor":{"display_login":"bimlas"}}