{"action":"created","issue":{"url":"https://api.github.com/repos/chzyer/readline/issues/60","repository_url":"https://api.github.com/repos/chzyer/readline","labels_url":"https://api.github.com/repos/chzyer/readline/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/chzyer/readline/issues/60/comments","events_url":"https://api.github.com/repos/chzyer/readline/issues/60/events","html_url":"https://github.com/chzyer/readline/pull/60","id":162129471,"number":60,"title":"Dynamic autocompletion","user":{"login":"setnicka","id":1175009,"avatar_url":"https://avatars.githubusercontent.com/u/1175009?v=3","gravatar_id":"","url":"https://api.github.com/users/setnicka","html_url":"https://github.com/setnicka","followers_url":"https://api.github.com/users/setnicka/followers","following_url":"https://api.github.com/users/setnicka/following{/other_user}","gists_url":"https://api.github.com/users/setnicka/gists{/gist_id}","starred_url":"https://api.github.com/users/setnicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setnicka/subscriptions","organizations_url":"https://api.github.com/users/setnicka/orgs","repos_url":"https://api.github.com/users/setnicka/repos","events_url":"https://api.github.com/users/setnicka/events{/privacy}","received_events_url":"https://api.github.com/users/setnicka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-24T11:38:35Z","updated_at":"2016-07-19T07:44:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chzyer/readline/pulls/60","html_url":"https://github.com/chzyer/readline/pull/60","diff_url":"https://github.com/chzyer/readline/pull/60.diff","patch_url":"https://github.com/chzyer/readline/pull/60.patch"},"body":"I implemented dynamic autocompletion mechanism.\r\n\r\nNow there is a new item type \"PcItemDynamic\" which takes function as\r\nparameter.\r\n\r\nWhen it comes to autocomplete at this position, the function is called,\r\nthe whole line is given to it (for example if autocompletion depend on\r\nprevious autocompleted field) and functio should return possible strings\r\nhow to continue.\r\n\r\nExample usage:\r\n * listing some dynamic key-value storage\r\n * listing files in directory"},"comment":{"url":"https://api.github.com/repos/chzyer/readline/issues/comments/233555793","html_url":"https://github.com/chzyer/readline/pull/60#issuecomment-233555793","issue_url":"https://api.github.com/repos/chzyer/readline/issues/60","id":233555793,"user":{"login":"setnicka","id":1175009,"avatar_url":"https://avatars.githubusercontent.com/u/1175009?v=3","gravatar_id":"","url":"https://api.github.com/users/setnicka","html_url":"https://github.com/setnicka","followers_url":"https://api.github.com/users/setnicka/followers","following_url":"https://api.github.com/users/setnicka/following{/other_user}","gists_url":"https://api.github.com/users/setnicka/gists{/gist_id}","starred_url":"https://api.github.com/users/setnicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setnicka/subscriptions","organizations_url":"https://api.github.com/users/setnicka/orgs","repos_url":"https://api.github.com/users/setnicka/repos","events_url":"https://api.github.com/users/setnicka/events{/privacy}","received_events_url":"https://api.github.com/users/setnicka/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T07:44:15Z","updated_at":"2016-07-19T07:44:15Z","body":"Sorry for lated reply too (summer trips, camps, etc).\r\n\r\nI added `DynamicPrefixCompleterInterface` like you suggested and yes, it looks good for me now :-)\r\n\r\nPlus I split `Do` function into `doInternal` with added parameter and original `Do` with the same declaration."}}
{"actor":{"display_login":"setnicka"}}