{"action":"created","issue":{"url":"https://api.github.com/repos/bastibe/PySoundCard/issues/41","labels_url":"https://api.github.com/repos/bastibe/PySoundCard/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/bastibe/PySoundCard/issues/41/comments","events_url":"https://api.github.com/repos/bastibe/PySoundCard/issues/41/events","html_url":"https://github.com/bastibe/PySoundCard/issues/41","id":49402983,"number":41,"title":"Allow selecting devices by device name substrings","user":{"login":"mgeier","id":705404,"avatar_url":"https://avatars.githubusercontent.com/u/705404?v=3","gravatar_id":"","url":"https://api.github.com/users/mgeier","html_url":"https://github.com/mgeier","followers_url":"https://api.github.com/users/mgeier/followers","following_url":"https://api.github.com/users/mgeier/following{/other_user}","gists_url":"https://api.github.com/users/mgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/mgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgeier/subscriptions","organizations_url":"https://api.github.com/users/mgeier/orgs","repos_url":"https://api.github.com/users/mgeier/repos","events_url":"https://api.github.com/users/mgeier/events{/privacy}","received_events_url":"https://api.github.com/users/mgeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-19T14:58:05Z","updated_at":"2015-01-20T18:08:59Z","closed_at":null,"body":"In addition to numeric device IDs, it should also be possible to select devices by strings, e.g. `device=\"hdmi\"`.\r\n\r\nI think it would be practical to use case-insensitive search, probably a space separated list of substring would also be useful, e.g. `device=\"hdmi 1\"`.\r\n\r\nWe could allow glob patterns and/or regular expressions, but I think that might be overkill.\r\n\r\nIf a string fits to several devices, an error should be raised."},"comment":{"url":"https://api.github.com/repos/bastibe/PySoundCard/issues/comments/70702207","html_url":"https://github.com/bastibe/PySoundCard/issues/41#issuecomment-70702207","issue_url":"https://api.github.com/repos/bastibe/PySoundCard/issues/41","id":70702207,"user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars.githubusercontent.com/u/179677?v=3","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T18:08:59Z","updated_at":"2015-01-20T18:08:59Z","body":"Makes sense..  \r\n\r\nI guess, glob, regex and match by string are common enough it could be a useful API.\r\n\r\nThe usecases here are probably:   GUIs (substring match), commandline:  regex / glob."}}