File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -661,7 +661,16 @@ function M.send_at_mention_for_visual_selection(line1, line2)
661
661
662
662
-- Special handling for mini.files: use integrations module instead of selection system
663
663
local current_ft = vim .bo .filetype
664
- if current_ft == " minifiles" then
664
+ local current_buf_name = vim .api .nvim_buf_get_name (vim .api .nvim_get_current_buf ())
665
+
666
+ -- Debug logging to see what we're detecting
667
+ logger .debug (" selection" , " Filetype detection debug:" )
668
+ logger .debug (" selection" , " current_ft: '" .. tostring (current_ft ) .. " '" )
669
+ logger .debug (" selection" , " current_buf_name: '" .. tostring (current_buf_name ) .. " '" )
670
+ logger .debug (" selection" , " is minifiles?: " .. tostring (current_ft == " minifiles" ))
671
+ logger .debug (" selection" , " buf_name has minifiles?: " .. tostring (current_buf_name :match (" ^minifiles://" ) ~= nil ))
672
+
673
+ if current_ft == " minifiles" or current_buf_name :match (" ^minifiles://" ) then
665
674
local integrations = require (" claudecode.integrations" )
666
675
local files , err = integrations .get_selected_files_from_tree ()
667
676
You can’t perform that action at this time.
0 commit comments