diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-08-20 11:11:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 11:11:24 -0400 |
| commit | a97af306c4e9c9a6fa7c886c0ffe3079822c5203 (patch) | |
| tree | f5e2b50a767e93618d0d8fdddb8a964c90633c8a /scratch/test_fuzzy_file.lua | |
| parent | d6d28dbe324de9826a579155076873888169ba0f (diff) | |
feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs
* short circuit to using bad finder if you pass writer.
Diffstat (limited to 'scratch/test_fuzzy_file.lua')
| -rw-r--r-- | scratch/test_fuzzy_file.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scratch/test_fuzzy_file.lua b/scratch/test_fuzzy_file.lua deleted file mode 100644 index 85d083a..0000000 --- a/scratch/test_fuzzy_file.lua +++ /dev/null @@ -1,20 +0,0 @@ -RELOAD('telescope') - -local sorter = require('telescope.sorters').get_fuzzy_file() - --- Test for tail. -assert(sorter:score("aaa", "aaa/bbb") > sorter:score("aaa", "bbb/aaa")) -assert( - sorter:score("path", "/path/to/directory/file.txt") - > sorter:score("path", "/file/to/directory/path.txt") -) - --- Matches well for UpperCase (basically just bonus points for having uppercase letters) -assert(sorter:score("AAA", "/blah/this/aaa/that") > sorter:score("AAA", "/blah/this/AAA/that")) - --- TODO: Determine our strategy for these --- TODO: Make it so that capital letters count extra for being after a path sep. --- assert(sorter:score("ftp", "/folder/to/python") > sorter:score("FTP", "/folder/to/python")) - --- TODO: Make it so that --- assert(sorter:score("build", "/home/tj/build/neovim") > sorter:score("htbn", "/home/tj/build/neovim")) |
