Skip to content

Commit 07fa185

Browse files
committed
feat: add multi-file visual selection support to mini.files integration
1 parent dda6dd3 commit 07fa185

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/claudecode/integrations.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ end
268268
--- Reference: mini.files API MiniFiles.get_fs_entry()
269269
--- @return table files List of file paths
270270
--- @return string|nil error Error message if operation failed
271+
271272
function M._get_mini_files_selection()
272273
local success, mini_files = pcall(require, "mini.files")
273274
if not success then
@@ -288,6 +289,7 @@ function M._get_mini_files_selection()
288289
-- Process each line in the visual selection
289290
for line = start_line, end_line do
290291
local entry_ok, entry = pcall(mini_files.get_fs_entry, bufnr, line)
292+
291293
if entry_ok and entry and entry.path and entry.path ~= "" then
292294
-- Extract real filesystem path from mini.files buffer path
293295
local real_path = entry.path
@@ -302,7 +304,7 @@ function M._get_mini_files_selection()
302304
end
303305
end
304306
end
305-
307+
306308
if #files > 0 then
307309
return files, nil
308310
end

0 commit comments

Comments
 (0)