{"action":"created","issue":{"url":"https://api.github.com/repos/JEG2/highline/issues/184","labels_url":"https://api.github.com/repos/JEG2/highline/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/JEG2/highline/issues/184/comments","events_url":"https://api.github.com/repos/JEG2/highline/issues/184/events","html_url":"https://github.com/JEG2/highline/pull/184","id":128462754,"number":184,"title":"Fix bugs and add text override options to menu choices","user":{"login":"matrinox","id":4261980,"avatar_url":"https://avatars.githubusercontent.com/u/4261980?v=3","gravatar_id":"","url":"https://api.github.com/users/matrinox","html_url":"https://github.com/matrinox","followers_url":"https://api.github.com/users/matrinox/followers","following_url":"https://api.github.com/users/matrinox/following{/other_user}","gists_url":"https://api.github.com/users/matrinox/gists{/gist_id}","starred_url":"https://api.github.com/users/matrinox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrinox/subscriptions","organizations_url":"https://api.github.com/users/matrinox/orgs","repos_url":"https://api.github.com/users/matrinox/repos","events_url":"https://api.github.com/users/matrinox/events{/privacy}","received_events_url":"https://api.github.com/users/matrinox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-25T05:09:22Z","updated_at":"2016-02-01T16:14:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JEG2/highline/pulls/184","html_url":"https://github.com/JEG2/highline/pull/184","diff_url":"https://github.com/JEG2/highline/pull/184.diff","patch_url":"https://github.com/JEG2/highline/pull/184.patch"},"body":"- Add text: key for menu choices so you can have a string that the user can match to but also a very long text that explains the selection better\r\n- Change choice interface to using keyword args. help is now `help:` instead of the 2nd arg\r\n- Fix bug where autocomplete prompt does not include menu choices after the first\r\n- Add specs to cover the new features and the fixed bug"},"comment":{"url":"https://api.github.com/repos/JEG2/highline/issues/comments/178048632","html_url":"https://github.com/JEG2/highline/pull/184#issuecomment-178048632","issue_url":"https://api.github.com/repos/JEG2/highline/issues/184","id":178048632,"user":{"login":"abinoam","id":551790,"avatar_url":"https://avatars.githubusercontent.com/u/551790?v=3","gravatar_id":"","url":"https://api.github.com/users/abinoam","html_url":"https://github.com/abinoam","followers_url":"https://api.github.com/users/abinoam/followers","following_url":"https://api.github.com/users/abinoam/following{/other_user}","gists_url":"https://api.github.com/users/abinoam/gists{/gist_id}","starred_url":"https://api.github.com/users/abinoam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abinoam/subscriptions","organizations_url":"https://api.github.com/users/abinoam/orgs","repos_url":"https://api.github.com/users/abinoam/repos","events_url":"https://api.github.com/users/abinoam/events{/privacy}","received_events_url":"https://api.github.com/users/abinoam/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T16:14:29Z","updated_at":"2016-02-01T16:14:29Z","body":"Hi @matrinox ,\r\n\r\nWe should look at this PR more carefully. Reopening it.\r\n\r\nLook at the example of the #choice interface.\r\n\r\n```ruby\r\n# @example Use of help string on menu items\r\n\r\ncli.choose do |menu|\r\n  menu.shell = true\r\n\r\n  menu.choice(:load, \"Load a file.\")\r\n  menu.choice(:save, \"Save data in file.\")\r\n  menu.choice(:quit, \"Exit program.\")\r\n  menu.choice(:load, text: 'MUDEI o text', help: \"MUDEI o help\")\r\n  menu.choice(:save, help: \"Save data in file.\")\r\n  menu.choice(:quit, help: \"Exit program.\")\r\n\r\n  menu.help(\"rules\", \"The rules of this system are as follows...\")\r\n end\r\n ```\r\n\r\nI think it's not working like this.\r\n\r\nI will not have any more free time today. \r\nBut I promise to give priority to this PR through the week as you have made such an effort. \r\nThank you again, and sorry for being so exigent/rigorous/demanding.\r\n "}}