{"action":"created","issue":{"url":"https://api.github.com/repos/citycide/glob/issues/1","repository_url":"https://api.github.com/repos/citycide/glob","labels_url":"https://api.github.com/repos/citycide/glob/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/citycide/glob/issues/1/comments","events_url":"https://api.github.com/repos/citycide/glob/issues/1/events","html_url":"https://github.com/citycide/glob/issues/1","id":325941009,"node_id":"MDU6SXNzdWUzMjU5NDEwMDk=","number":1,"title":"Support negated pattern matching `!(...patterns)`","user":{"login":"citycide","id":16605186,"node_id":"MDQ6VXNlcjE2NjA1MTg2","avatar_url":"https://avatars2.githubusercontent.com/u/16605186?v=4","gravatar_id":"","url":"https://api.github.com/users/citycide","html_url":"https://github.com/citycide","followers_url":"https://api.github.com/users/citycide/followers","following_url":"https://api.github.com/users/citycide/following{/other_user}","gists_url":"https://api.github.com/users/citycide/gists{/gist_id}","starred_url":"https://api.github.com/users/citycide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citycide/subscriptions","organizations_url":"https://api.github.com/users/citycide/orgs","repos_url":"https://api.github.com/users/citycide/repos","events_url":"https://api.github.com/users/citycide/events{/privacy}","received_events_url":"https://api.github.com/users/citycide/received_events","type":"User","site_admin":false},"labels":[{"id":942942847,"node_id":"MDU6TGFiZWw5NDI5NDI4NDc=","url":"https://api.github.com/repos/citycide/glob/labels/external","name":"external","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-24T02:25:43Z","updated_at":"2018-07-07T00:39:15Z","closed_at":null,"author_association":"OWNER","body":"The rest of the extended pattern matching forms are [already supported](https://citycide.github.io/glob/#syntax-extended-pattern-matching) but this one is actually not technically possible due to the current regex backend being used. `glob` needs to generate a regex negative lookahead of the form `(?!...)` which isn't implemented yet in [`regex`](https://github.com/nitely/nim-regex).\r\n\r\nThere's an existing issue over there for it: https://github.com/nitely/nim-regex/issues/6\r\n\r\nI'm assuming both Nim's stdlib regex engines support it but they both wrap `pcre` which removes the pure Nim aspect of `glob`."},"comment":{"url":"https://api.github.com/repos/citycide/glob/issues/comments/403176535","html_url":"https://github.com/citycide/glob/issues/1#issuecomment-403176535","issue_url":"https://api.github.com/repos/citycide/glob/issues/1","id":403176535,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzE3NjUzNQ==","user":{"login":"timotheecour","id":2194784,"node_id":"MDQ6VXNlcjIxOTQ3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2194784?v=4","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"created_at":"2018-07-07T00:39:14Z","updated_at":"2018-07-07T00:39:14Z","author_association":"NONE","body":"@citycide can user defined `filterDescend` be used for that? see https://github.com/citycide/glob/issues/8\r\neg:\r\n```\r\nimport glob\r\nimport re # or nre\r\nwalkGlobKinds(\".\", filterDescend = dir=>not dir.matches(re\"pattern1\")).filter(a=>not a.path.matches(re\"pattern2\"))\r\n```\r\nor:\r\n```\r\nimport glob\r\nimport regex\r\nwalkGlobKinds(\".\", filterDescend = dir=>dir.matches(re\"!(...patterns1)\")).filter(a=>a.path.matches(re\"!(...patterns2)\")\r\n```\r\n\r\n"}}
{"actor":{"display_login":"timotheecour"}}