advanced_grep: allow looking for directories or files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user