Skip to content

fix issues/70 #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lua/telescope/_extensions/smart_open/file_scanner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local function ripgrep_scan(basedir, ignore_patterns, on_insert, on_complete)
"--line-buffered",
"--hidden",
"--ignore-file",
"--path-separator=/",
basedir .. "/.ff-ignore",
}

Expand Down Expand Up @@ -100,6 +101,7 @@ local function ripgrep_scan(basedir, ignore_patterns, on_insert, on_complete)
end

return function(cwd, ignore_patterns, on_insert, on_complete)
cwd = vim.fs.normalize(cwd)
ripgrep_scan(cwd, ignore_patterns, on_insert, function(exit_code, err)
if exit_code ~= 0 then
print("ripgrep exited with code", exit_code, "and error:", err)
Expand Down
1 change: 1 addition & 0 deletions lua/telescope/_extensions/smart_open/finder/finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ return function(history, opts, context)
frecency = v.score / max_score,
recent_rank = v.recent_rank,
}
v.path = vim.fs.normalize(v.path)
local entry_data = create_entry_data(v.path, history_data, context)
entry_data.virtual_name = virtual_name.get_virtual_name(v.path)

Expand Down