Skip to content

Commit

Permalink
fix(from_entry): escape paths with $ symbol (nvim-telescope#2412)
Browse files Browse the repository at this point in the history
Adds support for viewing File Previews of paths with dollar symbols.
  • Loading branch information
jamestrew authored and abelmul committed Jun 6, 2023
1 parent 8efe1eb commit b4ceb5e
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit b4ceb5e

Please sign in to comment.