-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I want to add while filtering forward! Perform reverse filtering on symbols.
The example of prefixes is as follows. Is there a way to solve it?
Describe the solution you'd like
prefixes = {
["#"] = {
-- in the above example #lua,md -> input: lua,md -> output: --iglob="*.{lua,md}"
flag = "iglob",
cb = function(input) return string.format([[*.{%s}]], input) end,
},
["#!"] = {
-- in the above example #lua,md -> input: lua,md -> output: --iglob="i*.{lua,md}"
flag = "iglob",
cb = function(input) return string.format([[!*.{%s}]], input) end,
},
-- filter for (partial) folder names
[">"] = {
flag = "iglob",
cb = function(input) return string.format([[{%s}*/**]], input) end,
},
[">!"] = {
flag = "iglob",
cb = function(input) return string.format([[!{%s}*/**]], input) end,
},
["<"] = {
flag = "iglob",
cb = function(input) return string.format([[**/{%s}*/*]], input) end,
},
["<!"] = {
flag = "iglob",
cb = function(input) return string.format([[!**/{%s}*/*]], input) end,
},
["&"] = {
flag = "iglob",
cb = function(input) return string.format([[**/{%s}*/**]], input) end,
},
["&!"] = {
flag = "iglob",
cb = function(input) return string.format([[!**/{%s}*/**]], input) end,
},
["@"] = {
flag = "iglob",
cb = function(input) return string.format([[{%s}]], input) end,
},
["@!"] = {
flag = "iglob",
cb = function(input) return string.format([[!{%s}]], input) end,
},
},
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request