feat(file_selector): handle parsing oil directory (#2409)

This commit is contained in:
Han Pham
2025-07-04 06:29:02 -07:00
committed by GitHub
parent b7e7cb4715
commit 39ac64aca6

View File

@@ -83,6 +83,7 @@ end
function FileSelector:add_selected_file(filepath)
if not filepath or filepath == "" or has_scheme(filepath) then return end
if filepath:match("^oil:") then filepath = filepath:gsub("^oil:", "") end
local absolute_path = Utils.to_absolute_path(filepath)
local stat = vim.loop.fs_stat(absolute_path)
if stat and stat.type == "directory" then