A fuzzy search Neovim plugin. It supports searching in git repositories and the file system. It uses the Smith-Waterman algorithm with Inter-sequence Parallelization. It's available on x86_64 Linux/Windows.
It's inspired by frizbee but written completely from scratch in C. It overcomes the original bucketing problem in frizbee by preserving index (buckets) between scans.
Before scoring, a SIMD-accelerated prefilter drops any haystack string that doesn't contain enough of the needle's characters. A string passes if it contains at least about 30% of them.
Swimd version: 0.0.22 (7bb5eb52), fzf version: 0.75.0 (c7bf2b8e).
Tested on the official Chromium repository at commit d467e30b91.
System: Intel Core Ultra 7 258V, 8 CPUs, x86_64, Linux, 7.3.4-arch1-1.
CLI commands
swimd -n linux -bench 10000
fzf --filter linux --bench 10s
| Tool | Iterations | Average | Min | Max | Ingestion* |
|---|---|---|---|---|---|
| swimd | 2,755 | 3.51 ms | 2.70 ms | 5.68 ms | 333.52 ms |
| fzf | 437 | 22.91 ms | 18.32 ms | 60.20 ms | 324.65 ms |
* “Ingestion” in swimd refers to the time elapsed from program startup through reading the file tree and building indexes until the first query can be run.
{
"Irdis/swimd",
dependencies = 'kyazdani42/nvim-web-devicons',
config = function()
require('swimd-lua').setup();
end,
keys = {
{ "<Leader>ff", function() require('swimd-lua').open_picker_git() end },
{ "<Leader>fF", function() require('swimd-lua').open_picker_files() end },
{ "<Leader>fl", function() require('swimd-lua').i_feel_lucky_git(vim.fn.expand('<cword>')) end },
{ "<Leader>fL", function() require('swimd-lua').i_feel_lucky_files(vim.fn.expand('<cword>')) end },
{ "<Leader>fr", function() require('swimd-lua').refresh() end }
}
}
.gitignore.