which-key.nvim icon indicating copy to clipboard operation
which-key.nvim copied to clipboard

`which_key_ignore` doesn't work

Open anuvyklack opened this issue 2 years ago • 1 comments

I am using vim-xkbswitch plugin for language switching. and it adds new mappings which I would like to hide. But which_key_ignore label doesn't work. Other labels work: I steel can add a description but can't hide it.

which_key.register{
    gh = 'which_key_ignore',
    gH = 'test description',
    ['g<C-H>'] = 'which_key_ignore'
}

which_key_ignore

anuvyklack avatar Dec 07 '21 13:12 anuvyklack

I ran into this too. I didn't have time to attempt fixing the issue, but it looks like the source of the problem is around this area: https://github.com/folke/which-key.nvim/blob/bd4411a2ed4dd8bb69c125e339d837028a6eea71/lua/which-key/keys.lua#L104

It looks like k is the actual escaped value, not the text friendly version. e.g. <C-P> is actually an actual ^P.

BlakeWilliams avatar Jul 07 '22 23:07 BlakeWilliams