{"action":"created","issue":{"url":"https://api.github.com/repos/atom/fuzzy-finder/issues/21","labels_url":"https://api.github.com/repos/atom/fuzzy-finder/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/atom/fuzzy-finder/issues/21/comments","events_url":"https://api.github.com/repos/atom/fuzzy-finder/issues/21/events","html_url":"https://github.com/atom/fuzzy-finder/issues/21","id":29106280,"number":21,"title":"Sorting search results","user":{"login":"corbanbrook","id":62406,"avatar_url":"https://avatars.githubusercontent.com/u/62406?v=3","gravatar_id":"","url":"https://api.github.com/users/corbanbrook","html_url":"https://github.com/corbanbrook","followers_url":"https://api.github.com/users/corbanbrook/followers","following_url":"https://api.github.com/users/corbanbrook/following{/other_user}","gists_url":"https://api.github.com/users/corbanbrook/gists{/gist_id}","starred_url":"https://api.github.com/users/corbanbrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbanbrook/subscriptions","organizations_url":"https://api.github.com/users/corbanbrook/orgs","repos_url":"https://api.github.com/users/corbanbrook/repos","events_url":"https://api.github.com/users/corbanbrook/events{/privacy}","received_events_url":"https://api.github.com/users/corbanbrook/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/fuzzy-finder/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-03-10T15:50:36Z","updated_at":"2015-07-30T17:35:44Z","closed_at":null,"body":"Multiple schemes can be employed to achieve results which are most relevant to the user. Predicting which file a user wants out of a long list of possible matches and presenting it first can help speed up development time/maintain flow and train of thought. Here are some ideas to discuss:\r\n\r\n- [ ] Sort least fuzzy results to the top. Fuzziness determined by search term run length in the result. ie. Search term of 'src' would score a higher fuzziness score on a file like .jshintrc than a file called app_src.js or files in the src/ directory. run length of first file is 2 while the second file has a run length of 3.\r\n\r\n- [ ] Filename match or directory match. A match on a filename should be sorted at a higher priority than a match on a full path, but what about matches which higher run length on a full path vs less run length on a filename. ie. search of 'src ap' currently displays images/destroy_discard.png higher than src/app.coffee. Although destroy_discard technically has more matched character within the filename than src/app.coffee src/app has more run length. (something to think about)\r\n\r\n- [ ] Dot files. Hidden files are less important than non hidden of equal score.\r\n\r\n- [ ] Ignored files (.gitignore) can be sorted at lower priority than files with equal score. ie. I want the index.html in my templates/ dir. not my build/ dir because this is in .gitignore. Editing temporary file by mistake can add confusion and lost work.\r\n\r\n- [ ] Sort files with most recent last modified date at a higher priority than those of equal score.\r\n\r\n- [ ] Filter out/sort to bottom files that are already open."},"comment":{"url":"https://api.github.com/repos/atom/fuzzy-finder/issues/comments/126412668","html_url":"https://github.com/atom/fuzzy-finder/issues/21#issuecomment-126412668","issue_url":"https://api.github.com/repos/atom/fuzzy-finder/issues/21","id":126412668,"user":{"login":"Soleone","id":2923,"avatar_url":"https://avatars.githubusercontent.com/u/2923?v=3","gravatar_id":"","url":"https://api.github.com/users/Soleone","html_url":"https://github.com/Soleone","followers_url":"https://api.github.com/users/Soleone/followers","following_url":"https://api.github.com/users/Soleone/following{/other_user}","gists_url":"https://api.github.com/users/Soleone/gists{/gist_id}","starred_url":"https://api.github.com/users/Soleone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soleone/subscriptions","organizations_url":"https://api.github.com/users/Soleone/orgs","repos_url":"https://api.github.com/users/Soleone/repos","events_url":"https://api.github.com/users/Soleone/events{/privacy}","received_events_url":"https://api.github.com/users/Soleone/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T17:35:44Z","updated_at":"2015-07-30T17:35:44Z","body":":+1: for some improvements that make finding commonly used files easier. sublime seemed to have done a better job putting the file i actually want to open at the top (using rails here as well)"}}