telescope-egrepify.nvim
telescope-egrepify.nvim copied to clipboard
This is my design proposal, it seems that it has not been implemented as expected
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.