How to filter out pattern not found errors? #204
Replies: 2 comments 5 replies
-
Your answer is likely in https://github.com/folke/noice.nvim/wiki/A-Guide-to-Messages |
Beta Was this translation helpful? Give feedback.
-
I just starting using noice and encountered this same problem. Adding The following Note that the second condition here will hide any message starting with "/", not just the message echoed when searching for a nonexistent string, but I couldn't find something more specific to filter on. routes = {
{
opts = { skip = true },
filter = {
any = {
{
error = true,
find = "E486: Pattern not found",
},
{
event = "msg_show",
cond = function(msg)
return msg:content():sub(1, 1) == "/"
end,
},
},
},
},
}, |
Beta Was this translation helpful? Give feedback.
-
I have tried adding "c" to shortmess but that doesn't do anything...
Additional question: why do I sometimes see "/whatever" as a message when searching that? Is there any way to remove that?
Beta Was this translation helpful? Give feedback.
All reactions