noice.nvim
noice.nvim copied to clipboard
feature: allow capture groups in cmdline formats
Did you check the docs?
- [X] I have read all the noice.nvim docs
Is your feature request related to a problem? Please describe.
I would like for capture groups in the pattern to be accessible in the title (and/or icon, why not)
Describe the solution you'd like
noice.setup({
cmdline = {
format = {
-- possible
replace = { pattern = "^:s/", icon = "", lang = "vim", title = "Replace" },
-- not possible
replace_range = {
pattern = "^:([0-9.%$+-]+)[,;]([0-9.%$+-]+)s/",
icon = "",
lang = "vim",
title = "Replace in range [\1 to \2]",
},
-- possible
replace_all = { pattern = "^:%%s/", icon = "", lang = "vim", title = "Replace All" },
Describe alternatives you've considered
nothing else
Additional context
No response