fix(explorer): don't use --absolute-path option, since that resolves paths to realpath. See #901. See #905. See #904

This commit is contained in:
Folke Lemaitre 2025-02-03 19:45:14 +01:00
parent fe27bf13c9
commit 97570d23ac
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -330,7 +330,6 @@ function State:setup(opts, ctx)
"d", -- include directories "d", -- include directories
"--path-separator", -- same everywhere "--path-separator", -- same everywhere
"/", "/",
"--absolute-path", -- easier to work with
"--follow", -- always needed to make sure we see symlinked dirs as dirs "--follow", -- always needed to make sure we see symlinked dirs as dirs
} }
self.all = #ctx.filter.search > 0 self.all = #ctx.filter.search > 0
@ -352,6 +351,7 @@ function State:setup(opts, ctx)
end end
end end
end end
opts.dirs = { self.cwd }
else else
opts.dirs = self.tree:dirs(self.cwd) opts.dirs = self.tree:dirs(self.cwd)
for _, dir in ipairs(opts.dirs or {}) do for _, dir in ipairs(opts.dirs or {}) do