Closed ArtemSmaznov closed 2 years ago
referenced as and not as .
In your bug report you can use <
and >
to use angle brackets <>
, or enclose them with single backticks.
I took a glance and it looks like in which_key#mappings#parse()
<Tab>
instances in keymappings are replaced with the equivalent <C-I>
(see :help keycodes
), so that they're all merged together. The implementation looks a bit buggy right now as you noticed.
In your mappings and descriptions you can use <C-I>
instead of <Tab>
for now. In my simple testing they (native keymappings and vim-which-key descriptions) are merged and displayed in the vim-which-key popup labeled "TAB" well enough, though duplicated in my interactive test.
Apologies - I did not notice that the <>
parts were not rendered. I have updated the text now.
Is this what you meant?
Compared to having no which-key descriptions whatsoever the only difference I see is that now I have 2 tab entries in the root of which key both titled correctly but the individual bindings inside the tab prefix are still not named so not sure this is any better. Or did I misunderstand what you meant?
Environment (please complete the following information):
OS: Mac 12.4 (I don't have access to my main Arch Linux machine atm to test on linux proper)
Vim version: 8.2.4113
vim-which-key version: d7d451d
Have you reproduced with a minimal vimrc: No but I am basing this bug on the fact that other keys work as expected
Describe the bug I have several bindings set to
<leader><Tab>
and they show correctly in Which-Key but the group is named as "+prefix" as per default. I have spend a while trying to figure out how to change the name for the Tab group and have finally found that it shoud be referenced as<Tab>
and not as<TAB>
. The group gets anmed correctly but it stops showing the actual bindings if I do this.Not naming the group works as expected:
Naming the group works but keybinginds are not shown anymore:
Trying to name them manually only adds
w
as the name for some reason (tested andw
is the second ccharacter of the name for each binding and will change accordingly for each one):The same syntax works without problem for other prefixes like
<leader>b
and even<leader><space>
so I am completely lost why<Tab>
behaves like this and if this can be resolved somehow with my config.To Reproduce Steps to reproduce the behavior:
min.vim
:Expected behavior There should be bindings for Space+Tab+0 nad Space+Tab+1
Screenshots There are no bindings. If you uncomment the 2 lines with names it the bindings should say the appropriate string but they only display the second characted of the string (w in this instance for both) If you comment all 3 lines then the bindings are shown correctly but the
<Tab>
group is not namedAdditional context I have tried different variations of referring to Tab like
<TAB>
,<Tab>
,<tab>
,tab
,TAB
,\<Tab>
and even an actual tab symbol with no success.