advanced_grep: allow looking for directories or files

This commit is contained in:
2025-11-04 10:25:00 +02:00
parent 9d9934f133
commit 24bb947547

View File

@@ -31,7 +31,11 @@ local advanced_grep = function(opts)
local input_glob = pieces[2]
local glob = input_glob
if not input_glob:find("*", 1, true) then
glob = '**/*' .. input_glob .. '*/**'
glob = "*" .. input_glob .. "*"
if input_glob:find("d:", 1, true) then
glob = "**/" .. glob .. "/**"
glob = glob:gsub("d:", "")
end
end
table.insert(args, glob)
end