{"action":"closed","issue":{"url":"https://api.github.com/repos/craigbarnes/dte/issues/91","repository_url":"https://api.github.com/repos/craigbarnes/dte","labels_url":"https://api.github.com/repos/craigbarnes/dte/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/craigbarnes/dte/issues/91/comments","events_url":"https://api.github.com/repos/craigbarnes/dte/issues/91/events","html_url":"https://github.com/craigbarnes/dte/issues/91","id":269427642,"number":91,"title":"Support glob patterns in command arguments","user":{"login":"craigbarnes","id":494077,"avatar_url":"https://avatars0.githubusercontent.com/u/494077?v=4","gravatar_id":"","url":"https://api.github.com/users/craigbarnes","html_url":"https://github.com/craigbarnes","followers_url":"https://api.github.com/users/craigbarnes/followers","following_url":"https://api.github.com/users/craigbarnes/following{/other_user}","gists_url":"https://api.github.com/users/craigbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/craigbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigbarnes/subscriptions","organizations_url":"https://api.github.com/users/craigbarnes/orgs","repos_url":"https://api.github.com/users/craigbarnes/repos","events_url":"https://api.github.com/users/craigbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/craigbarnes/received_events","type":"User","site_admin":false},"labels":[{"id":652780951,"url":"https://api.github.com/repos/craigbarnes/dte/labels/enhancement","name":"enhancement","color":"0e8a16","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-29T19:34:23Z","updated_at":"2017-12-24T00:45:30Z","closed_at":"2017-12-24T00:45:30Z","author_association":"OWNER","body":"The `parse_command_arg()` function in `src/parse-command.c` currently expands the tilde character (`~`) in command arguments to the user's `$HOME` directory. This is currently implemented by using `getpwnam(\"username\")->pw_dir`.\r\n\r\nAnother common way to do this is via the POSIX `glob(3)` function with the `GLOB_TILDE` flag set. If `parse_command_arg()` was re-implemented using `glob`, it would also be easy to add support for wildcard matching (`*`) and other useful glob patterns. This would be very useful to allow commands like `open src/*.[ch]`."}}
{"actor":{"display_login":"craigbarnes"}}