{"action":"created","issue":{"url":"https://api.github.com/repos/Phyks/BMC/issues/39","repository_url":"https://api.github.com/repos/Phyks/BMC","labels_url":"https://api.github.com/repos/Phyks/BMC/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/Phyks/BMC/issues/39/comments","events_url":"https://api.github.com/repos/Phyks/BMC/issues/39/events","html_url":"https://github.com/Phyks/BMC/issues/39","id":176172603,"number":39,"title":"Feature request: tag name completion from the set of existing directories","user":{"login":"Hunter-Github","id":9477484,"avatar_url":"https://avatars.githubusercontent.com/u/9477484?v=3","gravatar_id":"","url":"https://api.github.com/users/Hunter-Github","html_url":"https://github.com/Hunter-Github","followers_url":"https://api.github.com/users/Hunter-Github/followers","following_url":"https://api.github.com/users/Hunter-Github/following{/other_user}","gists_url":"https://api.github.com/users/Hunter-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/Hunter-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hunter-Github/subscriptions","organizations_url":"https://api.github.com/users/Hunter-Github/orgs","repos_url":"https://api.github.com/users/Hunter-Github/repos","events_url":"https://api.github.com/users/Hunter-Github/events{/privacy}","received_events_url":"https://api.github.com/users/Hunter-Github/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Phyks/BMC/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Phyks/BMC/labels/Feature%20request","name":"Feature request","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-10T10:16:41Z","updated_at":"2016-09-11T14:59:56Z","closed_at":null,"body":"Rationale: simplification of workflow, otherwise one has to keep two terminals side by side to be sure of tag spelling.\r\n\r\nRelated: https://stackoverflow.com/questions/5637124/tab-completion-in-pythons-raw-input"},"comment":{"url":"https://api.github.com/repos/Phyks/BMC/issues/comments/246184700","html_url":"https://github.com/Phyks/BMC/issues/39#issuecomment-246184700","issue_url":"https://api.github.com/repos/Phyks/BMC/issues/39","id":246184700,"user":{"login":"Hunter-Github","id":9477484,"avatar_url":"https://avatars.githubusercontent.com/u/9477484?v=3","gravatar_id":"","url":"https://api.github.com/users/Hunter-Github","html_url":"https://github.com/Hunter-Github","followers_url":"https://api.github.com/users/Hunter-Github/followers","following_url":"https://api.github.com/users/Hunter-Github/following{/other_user}","gists_url":"https://api.github.com/users/Hunter-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/Hunter-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hunter-Github/subscriptions","organizations_url":"https://api.github.com/users/Hunter-Github/orgs","repos_url":"https://api.github.com/users/Hunter-Github/repos","events_url":"https://api.github.com/users/Hunter-Github/events{/privacy}","received_events_url":"https://api.github.com/users/Hunter-Github/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T14:59:56Z","updated_at":"2016-09-11T14:59:56Z","body":"Since then I've noted the great [`prompt_toolkit`](https://github.com/jonathanslenders/python-prompt-toolkit) which makes the whole endeavor much easier:\r\n\r\n```\r\nfrom __future__ import unicode_literals\r\nfrom prompt_toolkit.contrib.completers import PathCompleter\r\nfrom prompt_toolkit import prompt\r\n\r\npc = PathCompleter(get_paths=None, min_input_len=1)\r\n\r\ntext = prompt('Tag: ', completer=pc, complete_while_typing=False)\r\n\r\n```\r\n\r\nSomething like that..."}}
{"actor":{"display_login":"Hunter-Github"}}