Skip to content
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

fix(from_entry): escape paths with $ symbol #2412

Merged
Merged
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
fix(from_entry): escape paths with $ symbol
Adds support for viewing File Previews of paths with dollar symbols.
  • Loading branch information
jamestrew committed Mar 2, 2023
commit 9c792251eeac7de9ca70496f5a907298b6831446
2 changes: 1 addition & 1 deletion lua/telescope/from_entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function from_entry.path(entry, validate, escape)
-- TODO(conni2461): we are not going to return the expanded path because
-- this would lead to cache misses in the perviewer.
-- Requires overall refactoring in previewer interface
local expanded = vim.fn.expand(vim.fn.escape(path, "?*[]"))
local expanded = vim.fn.expand(vim.fn.escape(path, "$?*[]"))
if (vim.fn.filereadable(expanded) + vim.fn.isdirectory(expanded)) == 0 then
return
end
Expand Down