Support different patterns as keymaps. #376
Unanswered
redoxahmii
asked this question in
Q&A
Replies: 1 comment
-
|
And passing it like this search = {
command = "rg",
args = {
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
},
pattern = [[([-+*]|[0-9]+\.) \[[- x/<>?!*"lb~]\] .+]], -- ripgrep regex
}I'm basically just passing the pattern directly for now to test. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there anyway to use different patterns on different keymaps?
It would help a lot with using the existing solid base of integration with snacks and other while being able to customize it further with other regex patterns.
An example is filtering only markdown Todo tasks by using the pattern
'([-+*]|[0-9]+\.) \[[- x/<>?!*"lb~]\] .+'While this works if i pass it directly to
opts.search.patternit overwrites the default behavior completely so having that separation between them by keymaps can be helpful.Beta Was this translation helpful? Give feedback.
All reactions