{"action":"created","issue":{"url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/38","repository_url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt","labels_url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/38/comments","events_url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/38/events","html_url":"https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/38","id":244721259,"number":38,"title":"Support the \"default\" option, like in a normal inquirer list","user":{"login":"dumbmatter","id":828632,"avatar_url":"https://avatars0.githubusercontent.com/u/828632?v=4","gravatar_id":"","url":"https://api.github.com/users/dumbmatter","html_url":"https://github.com/dumbmatter","followers_url":"https://api.github.com/users/dumbmatter/followers","following_url":"https://api.github.com/users/dumbmatter/following{/other_user}","gists_url":"https://api.github.com/users/dumbmatter/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbmatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbmatter/subscriptions","organizations_url":"https://api.github.com/users/dumbmatter/orgs","repos_url":"https://api.github.com/users/dumbmatter/repos","events_url":"https://api.github.com/users/dumbmatter/events{/privacy}","received_events_url":"https://api.github.com/users/dumbmatter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-21T16:32:00Z","updated_at":"2018-02-22T09:01:51Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/pulls/38","html_url":"https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/38","diff_url":"https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/38.diff","patch_url":"https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/38.patch"},"body":"Currently, inquirer-autocomplete-prompt always starts by selecting the first item in the list by default. This PR lets you pass a `default` option containing either a string value or an index number to use as the default selection. This option is already supported by the normal Inquirer.js \"list\" feature.\r\n\r\n(Also, thanks for the very useful library!)"},"comment":{"url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/comments/367611871","html_url":"https://github.com/mokkabonna/inquirer-autocomplete-prompt/pull/38#issuecomment-367611871","issue_url":"https://api.github.com/repos/mokkabonna/inquirer-autocomplete-prompt/issues/38","id":367611871,"user":{"login":"mokkabonna","id":230877,"avatar_url":"https://avatars0.githubusercontent.com/u/230877?v=4","gravatar_id":"","url":"https://api.github.com/users/mokkabonna","html_url":"https://github.com/mokkabonna","followers_url":"https://api.github.com/users/mokkabonna/followers","following_url":"https://api.github.com/users/mokkabonna/following{/other_user}","gists_url":"https://api.github.com/users/mokkabonna/gists{/gist_id}","starred_url":"https://api.github.com/users/mokkabonna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokkabonna/subscriptions","organizations_url":"https://api.github.com/users/mokkabonna/orgs","repos_url":"https://api.github.com/users/mokkabonna/repos","events_url":"https://api.github.com/users/mokkabonna/events{/privacy}","received_events_url":"https://api.github.com/users/mokkabonna/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T09:01:51Z","updated_at":"2018-02-22T09:01:51Z","author_association":"OWNER","body":"> Where sort is performed?\r\n\r\nYou can add a then to your sources promise and sort results there.\r\n\r\n```\r\nsource: function(answersSoFar, input) {\r\n  return myApi.searchStates(input).then(function sortItems() {\r\n    //perform sort\r\n  })\r\n}\r\n```"}}
{"actor":{"display_login":"mokkabonna"}}