{"action":"created","issue":{"url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/23","labels_url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/23/comments","events_url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/23/events","html_url":"https://github.com/XYplorer-Scripts/IssueTracker/issues/23","id":55008519,"number":23,"title":"Ability to limit ColorFilters to List or Tree.","user":{"login":"TheQwerty","id":213205,"avatar_url":"https://avatars.githubusercontent.com/u/213205?v=3","gravatar_id":"","url":"https://api.github.com/users/TheQwerty","html_url":"https://github.com/TheQwerty","followers_url":"https://api.github.com/users/TheQwerty/followers","following_url":"https://api.github.com/users/TheQwerty/following{/other_user}","gists_url":"https://api.github.com/users/TheQwerty/gists{/gist_id}","starred_url":"https://api.github.com/users/TheQwerty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheQwerty/subscriptions","organizations_url":"https://api.github.com/users/TheQwerty/orgs","repos_url":"https://api.github.com/users/TheQwerty/repos","events_url":"https://api.github.com/users/TheQwerty/events{/privacy}","received_events_url":"https://api.github.com/users/TheQwerty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T11:45:45Z","updated_at":"2015-01-21T11:50:43Z","closed_at":null,"body":"http://www.xyplorer.com/xyfc/viewtopic.php?p=116796#p116796\r\nPosted: 2015-01-12\r\nOriginal wish by highend.\r\n> I thought your only option would be to disable _Apply color filters to the Tree_ but it appears instant color filters do not currently abide that option anyhow.\r\n> \r\n> \r\n> Not sure how this would best be addressed...\r\n> 1. Have ICFs obey the _Apply color filters to the Tree_ option?\r\n> 2. Have separate options for ICFs?\r\n> 3. A new _control_ parameter to _colorfilter_:\r\n> ````\r\n> colorfilter([filters], [separator=||], [control=*])\r\n> control: Filters will be applied to the specified control.\r\n> Accepted values:\r\n> E = Everywhere (Default) (or maybe this should be '*'?)\r\n> T = Tree\r\n> A, I, 1, 2 = List Pane (not sure we can or should go this specific, maybe just 'L' for list.)\r\n> ````\r\n> 4. New switches for all color filters:\r\n> ````\r\n> t-switch: tree\r\n> Applies this filter only to the Tree.\r\n> +ageC:d //t|>,FFF80\r\n> \r\n> l-switch: list\r\n> Applies this filter only to the List.\r\n> +ageC:d //l|>,FFF80\r\n> ````\r\n> \r\n> I kind of like that last one, but not sure it really helps with this particular issue.  :eh:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/comments/70824496","html_url":"https://github.com/XYplorer-Scripts/IssueTracker/issues/23#issuecomment-70824496","issue_url":"https://api.github.com/repos/XYplorer-Scripts/IssueTracker/issues/23","id":70824496,"user":{"login":"TheQwerty","id":213205,"avatar_url":"https://avatars.githubusercontent.com/u/213205?v=3","gravatar_id":"","url":"https://api.github.com/users/TheQwerty","html_url":"https://github.com/TheQwerty","followers_url":"https://api.github.com/users/TheQwerty/followers","following_url":"https://api.github.com/users/TheQwerty/following{/other_user}","gists_url":"https://api.github.com/users/TheQwerty/gists{/gist_id}","starred_url":"https://api.github.com/users/TheQwerty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheQwerty/subscriptions","organizations_url":"https://api.github.com/users/TheQwerty/orgs","repos_url":"https://api.github.com/users/TheQwerty/repos","events_url":"https://api.github.com/users/TheQwerty/events{/privacy}","received_events_url":"https://api.github.com/users/TheQwerty/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T11:50:43Z","updated_at":"2015-01-21T11:50:43Z","body":"http://www.xyplorer.com/xyfc/viewtopic.php?p=116819#p116819\r\nPosted: 2015-01-13\r\n\r\n> As I said with multiple patterns it gets tricky.\r\n> \r\n> The key is this bit from help:\r\n> `::help('idh_colorfilters.htm#idh_cfoverview');` wrote:\r\n> > Color filters allow you to color-code the files and folders currently visible in the List pane based on various criteria like __name__, __attributes__, __size__, __date__, __age__, __name length__, and __properties__. Filters based on __name__, __age__ and __attributes__ optionally also work in the Tree pane.\r\n> Thus to prevent a filter from working in the tree you must include a size, date, name length, or properties selector; or put another way for each pattern in your filter make it require one of these non-tree selectors also be true.\r\n> \r\n> The length selectors are ripe for abuse, since they are easy to force true - if you have names or paths of zero-length you probably have bigger problems. ;)\r\n> \r\n> This should highlight the items in the list only:\r\n> ````\r\n> colorfilter('\"Created or Modified [24 hours]\" ageC: <= 24 h AND lenT: > 0;ageM: <= 24 h AND lenT: > 0>FFFFFF,70B926');\r\n> ````\r\n> \r\n> However, apparently there's a bug somewhere (could be in my thinking) because changing the order so that the length selectors are first does not prevent it from working in the tree:\r\n> ````\r\n> colorfilter('\"Created or Modified [24 hours]\" lenT: > 0 AND ageC: <= 24 h;lenT: > 0 AND ageM: <= 24 h>FFFFFF,70B926');\r\n> ````\r\n> :veryconfused:\r\n> "}}