{"action":"created","issue":{"url":"https://api.github.com/repos/cppit/jucipp/issues/4","labels_url":"https://api.github.com/repos/cppit/jucipp/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/cppit/jucipp/issues/4/comments","events_url":"https://api.github.com/repos/cppit/jucipp/issues/4/events","html_url":"https://github.com/cppit/jucipp/issues/4","id":87245812,"number":4,"title":"Use autocompletion module from gtksourceviewmm instead.","user":{"login":"zalox","id":2240543,"avatar_url":"https://avatars.githubusercontent.com/u/2240543?v=3","gravatar_id":"","url":"https://api.github.com/users/zalox","html_url":"https://github.com/zalox","followers_url":"https://api.github.com/users/zalox/followers","following_url":"https://api.github.com/users/zalox/following{/other_user}","gists_url":"https://api.github.com/users/zalox/gists{/gist_id}","starred_url":"https://api.github.com/users/zalox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalox/subscriptions","organizations_url":"https://api.github.com/users/zalox/orgs","repos_url":"https://api.github.com/users/zalox/repos","events_url":"https://api.github.com/users/zalox/events{/privacy}","received_events_url":"https://api.github.com/users/zalox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cppit/jucipp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-11T07:33:48Z","updated_at":"2015-06-19T10:52:58Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/cppit/jucipp/issues/comments/113470954","html_url":"https://github.com/cppit/jucipp/issues/4#issuecomment-113470954","issue_url":"https://api.github.com/repos/cppit/jucipp/issues/4","id":113470954,"user":{"login":"eidheim","id":5269318,"avatar_url":"https://avatars.githubusercontent.com/u/5269318?v=3","gravatar_id":"","url":"https://api.github.com/users/eidheim","html_url":"https://github.com/eidheim","followers_url":"https://api.github.com/users/eidheim/followers","following_url":"https://api.github.com/users/eidheim/following{/other_user}","gists_url":"https://api.github.com/users/eidheim/gists{/gist_id}","starred_url":"https://api.github.com/users/eidheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidheim/subscriptions","organizations_url":"https://api.github.com/users/eidheim/orgs","repos_url":"https://api.github.com/users/eidheim/repos","events_url":"https://api.github.com/users/eidheim/events{/privacy}","received_events_url":"https://api.github.com/users/eidheim/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T10:52:58Z","updated_at":"2015-06-19T10:52:58Z","body":"The provider way to do this seemed more complicated than this needs to be. But a generic popup would be nice, and one could for instance use it like this (without giving it too much thought though):\r\nPopupSelector completions_selector(view, [this](std::string completion){\r\n  //Perform action when a completion is selected (stored in the string)\r\n});\r\n//completions is a vector of possible completions for instance:\r\ncompletions_selector.show(completions);\r\n//And if esc is clicked:\r\ncompletions_selector.hide();\r\nOr something like it, as long as its simple and understandable. Of course here the PopupSelector must find the insert (cursor) in the view and place the popup accordingly. Never mind my naming of the class btw, you can probably find a better one. "}}