folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.43k stars 177 forks source link

bug: which key prevents macros from working with tabs properly #865

Closed garydwatson closed 1 day ago

garydwatson commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10.2 and nightly as of the submission of this ticket

Operating system/version

debian trixie and macos

Describe the bug

Problem

in neovim execute the following set of keystrokes...

:edit one.txt<cr>
ione<esc>:w<cr>
:edit two.txt<cr>
itwo<esc>:w<cr>
:edit three.txt<cr>
ithree<esc>:w<cr>
:bfirst<cr>
:tabnew<cr>
gt
qqyygtpgt:bn<cr>q
@q@q

the No Name buffer should contain

one
two
three

but instead contains

one
two

and the tabs are not what they should be...

run the same steps without the which-key plugin enabled and the output is as expected.

Steps To Reproduce

See above description detailed steps are present

Expected Behavior

See above description, detailed expected behavior is present.

Health

==============================================================================
which-key:                                 require("which-key.health").check()

- OK Most of these checks are for informational purposes only.
  WARNINGS should be treated as a warning, and don't necessarily indicate a problem with your config.
  Please |DON't| report these warnings as an issue.

Checking your config ~
- WARNING |mini.icons| is not installed
- WARNING |nvim-web-devicons| is not installed
- WARNING Keymap icon support will be limited.

Checking for issues with your mappings ~
- OK No issues reported

checking for overlapping keymaps ~
- WARNING In mode `n`, <gc> overlaps with <gcc>:
  - <gc>: Toggle comment
  - <gcc>: Toggle comment line
- OK Overlapping keymaps are only reported for informational purposes.
  This doesn't necessarily mean there is a problem with your config.

Checking for duplicate mappings ~
- OK No duplicate mappings found

Log

apologies, but I could not get the logging to work (did try though)

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/which-key.nvim", opts = {} },
    -- add any other plugins here
  },
})
github-actions[bot] commented 1 week ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 day ago

This issue was closed because it has been stalled for 7 days with no activity.