{"action":"opened","issue":{"url":"https://api.github.com/repos/troglobit/editline/issues/3","labels_url":"https://api.github.com/repos/troglobit/editline/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/troglobit/editline/issues/3/comments","events_url":"https://api.github.com/repos/troglobit/editline/issues/3/events","html_url":"https://github.com/troglobit/editline/issues/3","id":95958539,"number":3,"title":"context specific auto-complete?","user":{"login":"ChrisNisbet01","id":6245285,"avatar_url":"https://avatars.githubusercontent.com/u/6245285?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisNisbet01","html_url":"https://github.com/ChrisNisbet01","followers_url":"https://api.github.com/users/ChrisNisbet01/followers","following_url":"https://api.github.com/users/ChrisNisbet01/following{/other_user}","gists_url":"https://api.github.com/users/ChrisNisbet01/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisNisbet01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisNisbet01/subscriptions","organizations_url":"https://api.github.com/users/ChrisNisbet01/orgs","repos_url":"https://api.github.com/users/ChrisNisbet01/repos","events_url":"https://api.github.com/users/ChrisNisbet01/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisNisbet01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-19T23:30:26Z","updated_at":"2015-07-19T23:30:26Z","closed_at":null,"body":"Hi\r\nI've just been looking at this library for use in a simple CLI application.\r\nI see that there is some support for supplying custom auto-complete functions so that (for example) the application can auto-complete commands from a fixed set of command names.\r\nWhen I try out the example cli application, I see that auto-complete searches the same list with each and every argument.\r\nWhat I'd like to do is vary the auto-complete function depending on the arguments already entered by the user so that (for example) auto-completing the second argument in a command searches one list if the first argument is 'a', and a different list if the first argument is 'b'. \r\nIs this possible out of the box with this library? Is there a way to obtain the arguments already entered so that auto-complete can be made more context specific?\r\nThanks\r\n"}}