fix: expand/normalize paths more selectively (#2628)

(cherry picked from commit 3b8399c273)
This commit is contained in:
James Trew
2024-05-20 11:10:12 +02:00
committed by Simon Hauser
parent 48960a8164
commit d5fe96ec8a
12 changed files with 80 additions and 26 deletions
+14
View File
@@ -2261,6 +2261,20 @@ UTILS *telescope.utils*
Utilities for writing telescope pickers
utils.path_expand({path}) *telescope.utils.path_expand()*
Selective `expand`. `vim.fn.expand` is overly aggressive, sometimes
expanding valid absolute paths into non-existent paths or straight up
erroring
Parameters: ~
{path} (string)
Return: ~
string
utils.transform_path({opts}, {path}) *telescope.utils.transform_path()*
Transform path is a util function that formats a path based on path_display
found in `opts` or the default value from config. It is meant to be used in