From 39ac64aca65d66d05409e712fac666eb298561f5 Mon Sep 17 00:00:00 2001 From: Han Pham <36429830+hanpham32@users.noreply.github.com> Date: Fri, 4 Jul 2025 06:29:02 -0700 Subject: [PATCH] feat(file_selector): handle parsing oil directory (#2409) --- lua/avante/file_selector.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/avante/file_selector.lua b/lua/avante/file_selector.lua index e408914..0c423ae 100644 --- a/lua/avante/file_selector.lua +++ b/lua/avante/file_selector.lua @@ -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