{"action":"created","issue":{"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/49","repository_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim","labels_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/49/comments","events_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/49/events","html_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/49","id":296276522,"number":49,"title":"add support for fuzzy search using lua and use TextChangedP","user":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"labels":[{"id":515835227,"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"assignees":[{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-02-12T06:21:33Z","updated_at":"2018-02-22T14:46:38Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/49","html_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/49","diff_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/49.diff","patch_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/49.patch"},"body":"This is a rewrite of asyncomplete.vim so there are some new features available while some features are missing. Plan is to have the same features as the current master with more new features. Will tag current master as v1 and this will be v2. Given that this is a rewrite there could be bugs. Feedback welcome.\r\n\r\n- [x] Use `TextChangedP` (requires vim patch https://github.com/vim/vim/commit/5a093437199001a0d60d8e18e2b9539b99a7757c. for neovim refer to https://github.com/neovim/neovim/pull/7996). https://github.com/prabirshrestha/asyncomplete.vim/issues/48\r\n- [x] Make asyncomplete.vim work in vim and neovim that doesn't have `TextChangedP` by falling back to timers. No plans to support smart fuzzy completion for this.\r\n- [x] If lua and `TextChangedP` is present fuzzy search is enabled by default. To disable smart (fuzzy) completion set `let g:asyncomplete_smart_completion = 0`. **Feedback welcome on whether we should make this enabled or disabled by default.**\r\n- [ ] Document internals of how asyncomplete.vim works.\r\n- [ ] Update public docs\r\n- [x] Delay computing candidates for speed by computing them at the end of the event loop.\r\n- [x] Add support for `let g:asyncomplete_min_chars = 3`. Defaults to 1 which maintains old behavior.\r\n- [x] `let g:asyncomplete_default_refresh_pattern = '\\(\\k\\+$\\|\\.$\\|:$\\)'`.\r\n- [ ] allow `g:asyncomplete_default_refresh_pattern` to be a function\r\n- [x] allow source `refresh_pattern` to be a function. Useful for sources that supports multiple languages such as omnisource.\r\n- [x] Port `g:asyncomplete_auto_popup` feature\r\n- [ ] Optimize `normalizedcurcandidates`. We can most likely just look at the first item in the array instead of looping the entire array.\r\n- [ ] Optimize `sort sources by priority`. Smart completion ignores this, so we most likley can ignore this loop for perf.\r\n- [ ] Optimize `remove duplicates if enabled`. Use lua to remove dups if exists.\r\n- [ ]  delay` s:update_pum()` in `s:on_text_changed()` since it is expensive due to filtering candidates"},"comment":{"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/comments/367703117","html_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/49#issuecomment-367703117","issue_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/49","id":367703117,"user":{"login":"rubdos","id":1263440,"avatar_url":"https://avatars2.githubusercontent.com/u/1263440?v=4","gravatar_id":"","url":"https://api.github.com/users/rubdos","html_url":"https://github.com/rubdos","followers_url":"https://api.github.com/users/rubdos/followers","following_url":"https://api.github.com/users/rubdos/following{/other_user}","gists_url":"https://api.github.com/users/rubdos/gists{/gist_id}","starred_url":"https://api.github.com/users/rubdos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubdos/subscriptions","organizations_url":"https://api.github.com/users/rubdos/orgs","repos_url":"https://api.github.com/users/rubdos/repos","events_url":"https://api.github.com/users/rubdos/events{/privacy}","received_events_url":"https://api.github.com/users/rubdos/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T14:46:37Z","updated_at":"2018-02-22T14:46:37Z","author_association":"NONE","body":"> You need latest vim to try out TextChangedP.\r\n\r\nOkay, I'll probably just wait for Arch and the new release then, that's usually quick enough. Looking forward to it.\r\n\r\nHad a chance to look at the text-replacement issue? I'm 100% okay with running on the TextChangedP branch, so that I can help finding issues. :-)"}}
{"actor":{"display_login":"rubdos"}}