fix: Do not transform URIs

This commit is contained in:
TJ DeVries
2021-08-06 13:12:13 -04:00
parent e7362e9996
commit ae897cec08

View File

@@ -278,7 +278,14 @@ utils.is_path_hidden = function(opts, path_display)
or path_display.hidden or path_display.hidden
end end
local is_uri = function(filename)
return string.match(filename, "^%w+://") ~= nil
end
utils.transform_path = function(opts, path) utils.transform_path = function(opts, path)
if is_uri(path) then return path end
local path_display = utils.get_default(opts.path_display, require("telescope.config").values.path_display) local path_display = utils.get_default(opts.path_display, require("telescope.config").values.path_display)
local transformed_path = path local transformed_path = path