Skip to content

Commit

Permalink
feat: use fd over than rg because fd is faster (#199)
Browse files Browse the repository at this point in the history
Fix #198
  • Loading branch information
delphinus committed May 20, 2024
1 parent 6b6565e commit 328452a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/frecency/finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Finder:start(datetime)
if config.workspace_scan_cmd ~= "LUA" and self.need_scan_dir then
---@type string[][]
local cmds = config.workspace_scan_cmd and { config.workspace_scan_cmd }
or { { "rg", "-.g", "!.git", "--files" }, { "fdfind", "-Htf" }, { "fd", "-Htf" } }
or { { "fdfind", "-Htf" }, { "fd", "-Htf" }, { "rg", "-.g", "!.git", "--files" } }
for _, c in ipairs(cmds) do
ok = self:scan_dir_cmd(c)
if ok then
Expand Down

0 comments on commit 328452a

Please sign in to comment.