Closed dannyfritz closed 1 month ago
Potentially related: https://github.com/folke/which-key.nvim/issues/598
That's weird indeed. I'm also using wayland and don't have this issuse. I'll push a debug mode later that will write to a log file. Will let you know when that's ready to further debug.
Can you enable debug with opts.debug = true
and report back the contents of ./wk.log
?
I have the exact same issue. This is the log after pressing "
:
on_key: "
State(start): { "Mode(n)", 'Node(")', { keys = '"', update = true, waited = 0 } }
getchar
on_key: <Esc>
got: <Esc>
And this is after first pressing '
, which works fine, and then <BS>
to go to the top level.
on_key: '
State(start): { "Mode(n)", "Node(')", { keys = "'", update = true, waited = 0 } }
getchar
on_key: <BS>
got: <BS>
getchar
on_key: <Esc>
got: <Esc>
reattach: { "<Esc>", "n" }
feedkeys: { "Mode(n)", "<Esc>" }
Damn ok, I think I know what's causing this. There's a bug/feature with wl-copy indeed where if you get its contenst it steals focus. which-key closes on focus lost.
I'm using hyprland, and there the issue doesn't exist, but I had a similar issue at some point with yanky on Gnome.
Will see if I can improve this.
Should be fixed. Would be great if you can confirm
It is, thanks a lot! :zap: speed :D
Also confirmed it is fixed. Thanks!
I believe this old issue is actually related: https://github.com/folke/which-key.nvim/issues/315
Did you check docs and existing issues?
Neovim version (nvim -v)
Operating system/version
Fedora 40 w/ Wayland
Describe the bug
When using Fedora 40 and Gnome Wayland, which-keys dismisses itself after hitting
<leader>
+backspace
. This is intended to show the top-level keymappings. This also happens when"
is hit, the UI is immediately dismissed.wl-clipboard
might be related?https://github.com/user-attachments/assets/edde2bc2-06b3-4106-a17e-7dd351b41d5a
Steps To Reproduce
<leader>
backspace
Expected Behavior
I expect to see the which-keys menu showing top-level keymappings.
Repro