{"action":"created","comment":{"url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/comments/41068338","id":41068338,"diff_hunk":"@@ -400,13 +402,17 @@ class SuggestionListElement extends HTMLElement\n   findCharacterMatchIndices: (text, replacementPrefix) ->\n     return unless text?.length and replacementPrefix?.length\n     matches = {}\n-    wordIndex = 0\n-    for ch, i in replacementPrefix\n-      while wordIndex < text.length and text[wordIndex].toLowerCase() isnt ch.toLowerCase()\n+    if @useAlternateScoring\n+      fpm = fuzzaldrinPlus.match(text, replacementPrefix)\n+      matches[pos] = true for pos in fpm","path":"lib/suggestion-list-element.coffee","position":25,"original_position":25,"commit_id":"f776ac39ef1dca9e87951b5e110ae2d21be15d8d","original_commit_id":"f776ac39ef1dca9e87951b5e110ae2d21be15d8d","user":{"login":"benogle","id":69169,"avatar_url":"https://avatars.githubusercontent.com/u/69169?v=3","gravatar_id":"","url":"https://api.github.com/users/benogle","html_url":"https://github.com/benogle","followers_url":"https://api.github.com/users/benogle/followers","following_url":"https://api.github.com/users/benogle/following{/other_user}","gists_url":"https://api.github.com/users/benogle/gists{/gist_id}","starred_url":"https://api.github.com/users/benogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benogle/subscriptions","organizations_url":"https://api.github.com/users/benogle/orgs","repos_url":"https://api.github.com/users/benogle/repos","events_url":"https://api.github.com/users/benogle/events{/privacy}","received_events_url":"https://api.github.com/users/benogle/received_events","type":"User","site_admin":true},"body":"Or maybe `wordIndex` for consistency","created_at":"2015-10-02T21:14:13Z","updated_at":"2015-10-02T21:14:13Z","html_url":"https://github.com/atom/autocomplete-plus/pull/587#discussion_r41068338","pull_request_url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587","_links":{"self":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/comments/41068338"},"html":{"href":"https://github.com/atom/autocomplete-plus/pull/587#discussion_r41068338"},"pull_request":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587"}}},"pull_request":{"url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587","id":46598403,"html_url":"https://github.com/atom/autocomplete-plus/pull/587","diff_url":"https://github.com/atom/autocomplete-plus/pull/587.diff","patch_url":"https://github.com/atom/autocomplete-plus/pull/587.patch","issue_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/587","number":587,"state":"open","locked":false,"title":"Use fuzzaldrin-plus as an option","user":{"login":"jeancroy","id":12763666,"avatar_url":"https://avatars.githubusercontent.com/u/12763666?v=3","gravatar_id":"","url":"https://api.github.com/users/jeancroy","html_url":"https://github.com/jeancroy","followers_url":"https://api.github.com/users/jeancroy/followers","following_url":"https://api.github.com/users/jeancroy/following{/other_user}","gists_url":"https://api.github.com/users/jeancroy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeancroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeancroy/subscriptions","organizations_url":"https://api.github.com/users/jeancroy/orgs","repos_url":"https://api.github.com/users/jeancroy/repos","events_url":"https://api.github.com/users/jeancroy/events{/privacy}","received_events_url":"https://api.github.com/users/jeancroy/received_events","type":"User","site_admin":false},"body":"Address https://github.com/atom/autocomplete-plus/issues/586\r\n\r\nAdd options to the end:\r\nUse Alternative Scoring - disabled by default, use fuzzaldrin-plus.\r\nUse Buffer Proximity - enabled by default, standard locality scoring.\r\n\r\nThis is done so the tester can see the effect of which is which. \r\nThey are not quite tuned together. \r\n\r\nExample when proximity feel intuitive or not would be helpful, there's no spec for that.\r\nMaybe later proximity strength  can be an option instead of on/off.","created_at":"2015-10-02T02:34:49Z","updated_at":"2015-10-02T21:14:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbda6e816579decaa62ddaea1263de383d352684","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587/commits","review_comments_url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587/comments","review_comment_url":"https://api.github.com/repos/atom/autocomplete-plus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/587/comments","statuses_url":"https://api.github.com/repos/atom/autocomplete-plus/statuses/f776ac39ef1dca9e87951b5e110ae2d21be15d8d","head":{"label":"jeancroy:master","ref":"master","sha":"f776ac39ef1dca9e87951b5e110ae2d21be15d8d","user":{"login":"jeancroy","id":12763666,"avatar_url":"https://avatars.githubusercontent.com/u/12763666?v=3","gravatar_id":"","url":"https://api.github.com/users/jeancroy","html_url":"https://github.com/jeancroy","followers_url":"https://api.github.com/users/jeancroy/followers","following_url":"https://api.github.com/users/jeancroy/following{/other_user}","gists_url":"https://api.github.com/users/jeancroy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeancroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeancroy/subscriptions","organizations_url":"https://api.github.com/users/jeancroy/orgs","repos_url":"https://api.github.com/users/jeancroy/repos","events_url":"https://api.github.com/users/jeancroy/events{/privacy}","received_events_url":"https://api.github.com/users/jeancroy/received_events","type":"User","site_admin":false},"repo":{"id":43526962,"name":"autocomplete-plus","full_name":"jeancroy/autocomplete-plus","owner":{"login":"jeancroy","id":12763666,"avatar_url":"https://avatars.githubusercontent.com/u/12763666?v=3","gravatar_id":"","url":"https://api.github.com/users/jeancroy","html_url":"https://github.com/jeancroy","followers_url":"https://api.github.com/users/jeancroy/followers","following_url":"https://api.github.com/users/jeancroy/following{/other_user}","gists_url":"https://api.github.com/users/jeancroy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeancroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeancroy/subscriptions","organizations_url":"https://api.github.com/users/jeancroy/orgs","repos_url":"https://api.github.com/users/jeancroy/repos","events_url":"https://api.github.com/users/jeancroy/events{/privacy}","received_events_url":"https://api.github.com/users/jeancroy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeancroy/autocomplete-plus","description":"View and insert possible completions in the editor while typing","fork":true,"url":"https://api.github.com/repos/jeancroy/autocomplete-plus","forks_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/forks","keys_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/teams","hooks_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/hooks","issue_events_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/issues/events{/number}","events_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/events","assignees_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/assignees{/user}","branches_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/branches{/branch}","tags_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/tags","blobs_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/statuses/{sha}","languages_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/languages","stargazers_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/stargazers","contributors_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/contributors","subscribers_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/subscribers","subscription_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/subscription","commits_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/contents/{+path}","compare_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/merges","archive_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/downloads","issues_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/issues{/number}","pulls_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/pulls{/number}","milestones_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/milestones{/number}","notifications_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/labels{/name}","releases_url":"https://api.github.com/repos/jeancroy/autocomplete-plus/releases{/id}","created_at":"2015-10-01T23:40:32Z","updated_at":"2015-10-01T23:40:32Z","pushed_at":"2015-10-02T15:04:05Z","git_url":"git://github.com/jeancroy/autocomplete-plus.git","ssh_url":"git@github.com:jeancroy/autocomplete-plus.git","clone_url":"https://github.com/jeancroy/autocomplete-plus.git","svn_url":"https://github.com/jeancroy/autocomplete-plus","homepage":"","size":4893,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"7cca9b663a29d60e3257cb6c446c752a3fc01352","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":17254728,"name":"autocomplete-plus","full_name":"atom/autocomplete-plus","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/autocomplete-plus","description":"View and insert possible completions in the editor while typing","fork":false,"url":"https://api.github.com/repos/atom/autocomplete-plus","forks_url":"https://api.github.com/repos/atom/autocomplete-plus/forks","keys_url":"https://api.github.com/repos/atom/autocomplete-plus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/autocomplete-plus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/autocomplete-plus/teams","hooks_url":"https://api.github.com/repos/atom/autocomplete-plus/hooks","issue_events_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/events{/number}","events_url":"https://api.github.com/repos/atom/autocomplete-plus/events","assignees_url":"https://api.github.com/repos/atom/autocomplete-plus/assignees{/user}","branches_url":"https://api.github.com/repos/atom/autocomplete-plus/branches{/branch}","tags_url":"https://api.github.com/repos/atom/autocomplete-plus/tags","blobs_url":"https://api.github.com/repos/atom/autocomplete-plus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/autocomplete-plus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/autocomplete-plus/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/autocomplete-plus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/autocomplete-plus/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/autocomplete-plus/languages","stargazers_url":"https://api.github.com/repos/atom/autocomplete-plus/stargazers","contributors_url":"https://api.github.com/repos/atom/autocomplete-plus/contributors","subscribers_url":"https://api.github.com/repos/atom/autocomplete-plus/subscribers","subscription_url":"https://api.github.com/repos/atom/autocomplete-plus/subscription","commits_url":"https://api.github.com/repos/atom/autocomplete-plus/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/autocomplete-plus/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/autocomplete-plus/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/autocomplete-plus/contents/{+path}","compare_url":"https://api.github.com/repos/atom/autocomplete-plus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/autocomplete-plus/merges","archive_url":"https://api.github.com/repos/atom/autocomplete-plus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/autocomplete-plus/downloads","issues_url":"https://api.github.com/repos/atom/autocomplete-plus/issues{/number}","pulls_url":"https://api.github.com/repos/atom/autocomplete-plus/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/autocomplete-plus/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/autocomplete-plus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/autocomplete-plus/labels{/name}","releases_url":"https://api.github.com/repos/atom/autocomplete-plus/releases{/id}","created_at":"2014-02-27T16:03:36Z","updated_at":"2015-10-01T21:33:10Z","pushed_at":"2015-10-02T17:40:05Z","git_url":"git://github.com/atom/autocomplete-plus.git","ssh_url":"git@github.com:atom/autocomplete-plus.git","clone_url":"https://github.com/atom/autocomplete-plus.git","svn_url":"https://github.com/atom/autocomplete-plus","homepage":"","size":4893,"stargazers_count":415,"watchers_count":415,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":54,"forks":119,"open_issues":54,"watchers":415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587"},"html":{"href":"https://github.com/atom/autocomplete-plus/pull/587"},"issue":{"href":"https://api.github.com/repos/atom/autocomplete-plus/issues/587"},"comments":{"href":"https://api.github.com/repos/atom/autocomplete-plus/issues/587/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/autocomplete-plus/pulls/587/commits"},"statuses":{"href":"https://api.github.com/repos/atom/autocomplete-plus/statuses/f776ac39ef1dca9e87951b5e110ae2d21be15d8d"}}}}