{"action":"created","issue":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/827","repository_url":"https://api.github.com/repos/davidhalter/jedi","labels_url":"https://api.github.com/repos/davidhalter/jedi/issues/827/labels{/name}","comments_url":"https://api.github.com/repos/davidhalter/jedi/issues/827/comments","events_url":"https://api.github.com/repos/davidhalter/jedi/issues/827/events","html_url":"https://github.com/davidhalter/jedi/issues/827","id":200456867,"number":827,"title":"Feature: fuzzy matching for completion","user":{"login":"PythonNut","id":5009546,"avatar_url":"https://avatars.githubusercontent.com/u/5009546?v=3","gravatar_id":"","url":"https://api.github.com/users/PythonNut","html_url":"https://github.com/PythonNut","followers_url":"https://api.github.com/users/PythonNut/followers","following_url":"https://api.github.com/users/PythonNut/following{/other_user}","gists_url":"https://api.github.com/users/PythonNut/gists{/gist_id}","starred_url":"https://api.github.com/users/PythonNut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PythonNut/subscriptions","organizations_url":"https://api.github.com/users/PythonNut/orgs","repos_url":"https://api.github.com/users/PythonNut/repos","events_url":"https://api.github.com/users/PythonNut/events{/privacy}","received_events_url":"https://api.github.com/users/PythonNut/received_events","type":"User","site_admin":false},"labels":[{"id":17235916,"url":"https://api.github.com/repos/davidhalter/jedi/labels/feature","name":"feature","color":"02e10c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-12T19:24:53Z","updated_at":"2017-01-23T19:43:17Z","closed_at":null,"body":"By \"fuzzy matching\" I mean Sublime Text style `tifn` -> <code>**t**his\\_**i**s\\_**a**\\_**f**unction\\_**n**ame</code>.\r\n\r\nThis comes from these issues:\r\n\r\n* https://github.com/PythonNut/company-flx/issues/17 (fuzzy completion package for Emacs w/ `company-mode`)\r\n* https://github.com/proofit404/company-anaconda/issues/24 (python completion package for Emacs w/ `company-mode`)\r\n\r\nI spent some time reading the [`anaconda-mode` source](https://github.com/proofit404/anaconda-mode/blob/4f84759cab7746cf705f75719e701551d47de1e3/anaconda_mode.py#L61), and it appears that support for fuzzy matching needs to be implemented in `jedi`.\r\n\r\nHow would this work? My uneducated guess is that `jedi.Script.completions` would take an optional parameter to specify whether to return fuzzy completions.\r\n\r\nI realize that this could be a very difficult change to make, and that I can't anticipate potential performance implications, but I'd very much like to see this happen. 😄 \r\n\r\n_Note: as for me just submitting a PR, it's possible, but I don't think I can for a very long time, if ever._"},"comment":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/comments/274595327","html_url":"https://github.com/davidhalter/jedi/issues/827#issuecomment-274595327","issue_url":"https://api.github.com/repos/davidhalter/jedi/issues/827","id":274595327,"user":{"login":"davidhalter","id":748594,"avatar_url":"https://avatars.githubusercontent.com/u/748594?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhalter","html_url":"https://github.com/davidhalter","followers_url":"https://api.github.com/users/davidhalter/followers","following_url":"https://api.github.com/users/davidhalter/following{/other_user}","gists_url":"https://api.github.com/users/davidhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhalter/subscriptions","organizations_url":"https://api.github.com/users/davidhalter/orgs","repos_url":"https://api.github.com/users/davidhalter/repos","events_url":"https://api.github.com/users/davidhalter/events{/privacy}","received_events_url":"https://api.github.com/users/davidhalter/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T19:43:17Z","updated_at":"2017-01-23T19:43:17Z","body":"@proofit404 Sorry I haven't read the whole conversation. I have just read the first post. It was meant as I would like to see this feature without a solution attache to it.\r\n\r\n@PythonNut You don't even have to remove the symbol before the point. It's basically something that can be done in `jedi.api.completion` (dev branch!). It's a very small change that doesn't need a lot of work. Note that if you're on master branch it probably doesn't look as simple, because I have almost completely rewritten that stuff."}}
{"actor":{"display_login":"davidhalter"}}