{"action":"created","issue":{"url":"https://api.github.com/repos/company-mode/company-mode/issues/767","repository_url":"https://api.github.com/repos/company-mode/company-mode","labels_url":"https://api.github.com/repos/company-mode/company-mode/issues/767/labels{/name}","comments_url":"https://api.github.com/repos/company-mode/company-mode/issues/767/comments","events_url":"https://api.github.com/repos/company-mode/company-mode/issues/767/events","html_url":"https://github.com/company-mode/company-mode/issues/767","id":305298860,"number":767,"title":"Configure company to accept input only if I've interacted with the pop-up menu","user":{"login":"kshenoy","id":1559554,"avatar_url":"https://avatars3.githubusercontent.com/u/1559554?v=4","gravatar_id":"","url":"https://api.github.com/users/kshenoy","html_url":"https://github.com/kshenoy","followers_url":"https://api.github.com/users/kshenoy/followers","following_url":"https://api.github.com/users/kshenoy/following{/other_user}","gists_url":"https://api.github.com/users/kshenoy/gists{/gist_id}","starred_url":"https://api.github.com/users/kshenoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshenoy/subscriptions","organizations_url":"https://api.github.com/users/kshenoy/orgs","repos_url":"https://api.github.com/users/kshenoy/repos","events_url":"https://api.github.com/users/kshenoy/events{/privacy}","received_events_url":"https://api.github.com/users/kshenoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-14T19:31:00Z","updated_at":"2018-03-15T11:32:38Z","closed_at":null,"author_association":"NONE","body":"By default, company will show a pop-up menu and automatically highlight the first selection and if I don't want to use the suggestion, I can continue typing and there are no issues.\r\n\r\nThe issue arises when the menu pops up and I want to press a RET/TAB (while typing and not to accept company's suggestions). Now I have to press `C-g` to kill it and only then press RET/TAB.\r\n\r\nIs it possible to configure company to just show the pop-up menu but not select any entry. That way, any RET/TAB will be treated as complete-selection or complete-common only if we've explicitly pressed `M-n` or `M-p` and selected an entry. If not, it'll just be treated as a regular RET/TAB.\r\n\r\nAlso, is it possible to show the sources of completion eg. `y` to indicate yasnippet etc.\r\n\r\nSince `M-[1-9]` can be used to quickly select an entry from the pop-up menu, is it possible to configure the pop-up menu to show the numbers to simplify the process of selecting an entry?\r\n\r\n**EDIT:**\r\n\r\nI found out about `company-explicit-action-p` and tried this and it seems to work for now. \r\n\r\n    (bind-keys :map company-active-map\r\n               :filter (company-explicit-action-p)\r\n               (\"<return>\" . company-complete-selection)\r\n               (\"RET\"      . company-complete-selection)\r\n               (\"<tab>\"    . company-complete-common)\r\n               (\"TAB\"      . company-complete-common))\r\n\r\nI don't know yet if there are any downsides to doing it this way. If not, that answers part of the question.\r\n\r\nAlso found out about `company-show-numbers` and that answers one question but raises another - what's a good way for me to learn about all these options?"},"comment":{"url":"https://api.github.com/repos/company-mode/company-mode/issues/comments/373346118","html_url":"https://github.com/company-mode/company-mode/issues/767#issuecomment-373346118","issue_url":"https://api.github.com/repos/company-mode/company-mode/issues/767","id":373346118,"user":{"login":"dgutov","id":271877,"avatar_url":"https://avatars2.githubusercontent.com/u/271877?v=4","gravatar_id":"","url":"https://api.github.com/users/dgutov","html_url":"https://github.com/dgutov","followers_url":"https://api.github.com/users/dgutov/followers","following_url":"https://api.github.com/users/dgutov/following{/other_user}","gists_url":"https://api.github.com/users/dgutov/gists{/gist_id}","starred_url":"https://api.github.com/users/dgutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgutov/subscriptions","organizations_url":"https://api.github.com/users/dgutov/orgs","repos_url":"https://api.github.com/users/dgutov/repos","events_url":"https://api.github.com/users/dgutov/events{/privacy}","received_events_url":"https://api.github.com/users/dgutov/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T11:32:38Z","updated_at":"2018-03-15T11:32:38Z","author_association":"OWNER","body":"> what's a good way for me to learn about all these options?\r\n\r\nLike the homepage says: `M-x customize-group RET company`."}}
{"actor":{"display_login":"dgutov"}}