{"action":"opened","issue":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/2051","labels_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/2051/labels{/name}","comments_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/2051/comments","events_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/2051/events","html_url":"https://github.com/Jermolene/TiddlyWiki5/issues/2051","id":114002301,"number":2051,"title":"Can we extend filtering to allow iterated filters without nested lists?","user":{"login":"inmysocks","id":5026006,"avatar_url":"https://avatars.githubusercontent.com/u/5026006?v=3","gravatar_id":"","url":"https://api.github.com/users/inmysocks","html_url":"https://github.com/inmysocks","followers_url":"https://api.github.com/users/inmysocks/followers","following_url":"https://api.github.com/users/inmysocks/following{/other_user}","gists_url":"https://api.github.com/users/inmysocks/gists{/gist_id}","starred_url":"https://api.github.com/users/inmysocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inmysocks/subscriptions","organizations_url":"https://api.github.com/users/inmysocks/orgs","repos_url":"https://api.github.com/users/inmysocks/repos","events_url":"https://api.github.com/users/inmysocks/events{/privacy}","received_events_url":"https://api.github.com/users/inmysocks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T08:32:52Z","updated_at":"2015-10-29T08:32:52Z","closed_at":null,"body":"This isn't the same as using multiple filter runs. If you want to use a filter to find all tiddlers with a field (any field, not a specific field) that contains a string currently you need to do something like this:\r\n\r\n<$list filter='[!is[system]]' variable=TiddlerName>\r\n<$list filter='[<TiddlerName>fields[]]' variable=FieldName>\r\n<$list filter='[<TiddlerName>get<FieldName>search:title[SearchString]]'>\r\n\r\n<<TiddlerName>>\r\n\r\n</$list>\r\n</$list>\r\n</$list>\r\n\r\nwhich will give you the correct list, but if a tiddler has multiple fields that match the search criteria it will be listed once for each match.\r\n\r\nWhat I would like to be able to do is put all of that into one list widget like this:\r\n\r\n<$list filter='[!is[system]]' variable=TiddlerName, filter='[<TiddlerName>fields[]]' variable=FieldName, filter='[<TiddlerName>get<FieldName>search:title[SearchString]]'>\r\n\r\n<<TiddlerName>>\r\n\r\n</$list>\r\n\r\nwhere it acts the same as the nested list and does each filter in order applying it to every output from the previous filter, but the output is a single list so that the entire output can be sorted and duplicate entries can be removed and so on.\r\n\r\nI don't know how difficult it would be to extend the list widget to do this. The simplest implementation wouldn't be difficult but ensuring that it doesn't break anything else may be difficult."}}