{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/2168","repository_url":"https://api.github.com/repos/Valloric/YouCompleteMe","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/2168/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/2168/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/2168/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/2168","id":154807002,"number":2168,"title":"g:ycm_key_list_select_completion strange behavior","user":{"login":"motsu35","id":4348740,"avatar_url":"https://avatars.githubusercontent.com/u/4348740?v=3","gravatar_id":"","url":"https://api.github.com/users/motsu35","html_url":"https://github.com/motsu35","followers_url":"https://api.github.com/users/motsu35/followers","following_url":"https://api.github.com/users/motsu35/following{/other_user}","gists_url":"https://api.github.com/users/motsu35/gists{/gist_id}","starred_url":"https://api.github.com/users/motsu35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motsu35/subscriptions","organizations_url":"https://api.github.com/users/motsu35/orgs","repos_url":"https://api.github.com/users/motsu35/repos","events_url":"https://api.github.com/users/motsu35/events{/privacy}","received_events_url":"https://api.github.com/users/motsu35/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-13T21:49:30Z","updated_at":"2016-06-07T09:35:00Z","closed_at":"2016-06-07T09:35:00Z","body":"# Issue Prelude\r\n\r\n- [ x] I have read and understood YCM's [CONTRIBUTING][cont] document.\r\n- [x ] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.\r\n- [ x] I have read and understood YCM's [README][readme], **especially the\r\n  [Frequently Asked Questions][faq] section.**\r\n- [x ] I have searched YCM's issue tracker to find issues similar to the one I'm\r\n  about to report and couldn't find an answer to my problem. ([Example Google\r\n  search.][search])\r\n- [x ] **I understand this is an open-source project staffed by volunteers and\r\n  that any help I receive is a selfless, heartfelt _gift_ of their free time. I\r\n  know I am not entitled to anything and will be polite and courteous.**\r\n- [x ] **I understand my issue may be closed if it becomes obvious I didn't\r\n  actually perform all of these steps.**\r\n\r\nMy goal was to get <down> unmapped from YCM's 'go into menu', while still working inside of it.\r\nexample: autocomplete menu appears, and you press down. it will close the menu and go to the line below.\r\nautocomplete menu appears, you press tab, once inside the menu, up and down will select though completions, until you press a key and keep going on your way.\r\n\r\nwhat i did:\r\nlet g:ycm_key_list_select_completion = ['<TAB>']\r\n\r\nwhat happens:\r\npressing the down arrow still scrolls though the menu, but does not 'insert' the correction. pressing up or tab does insert the correction.\r\n\r\nbased on the description of the option, it seems like what i tried to do should work. it just seems that that, and going down in the list are coupled. maybe have 3 options instead of 2, how to go up in the menu, how to go down, and how to enter the menu to the first insertion. "},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/224229288","html_url":"https://github.com/Valloric/YouCompleteMe/issues/2168#issuecomment-224229288","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/2168","id":224229288,"user":{"login":"micbou","id":10026824,"avatar_url":"https://avatars.githubusercontent.com/u/10026824?v=3","gravatar_id":"","url":"https://api.github.com/users/micbou","html_url":"https://github.com/micbou","followers_url":"https://api.github.com/users/micbou/followers","following_url":"https://api.github.com/users/micbou/following{/other_user}","gists_url":"https://api.github.com/users/micbou/gists{/gist_id}","starred_url":"https://api.github.com/users/micbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbou/subscriptions","organizations_url":"https://api.github.com/users/micbou/orgs","repos_url":"https://api.github.com/users/micbou/repos","events_url":"https://api.github.com/users/micbou/events{/privacy}","received_events_url":"https://api.github.com/users/micbou/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T09:35:00Z","updated_at":"2016-06-07T09:35:00Z","body":"> maybe have 3 options instead of 2, how to go up in the menu, how to go down, and how to enter the menu to the first insertion.\r\n\r\nWhat you are asking is not possible with current Vim behavior. Vim doesn't provide any keys to just enter the menu without going further down or up (see `:h popupmenu-keys` for the list of keys) and there is no way to know if we are in the completion menu or not. We can only know if the completion menu is opened (`:h pumvisible()`). If you feel that it would be a useful feature for Vim, [open an issue on the Vim repository](https://github.com/vim/vim/issues) ."}}
{"actor":{"display_login":"micbou"}}