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

feature: disabling the popup on prefixes with Ctrl

Open alex35mil opened this issue 2 years ago • 3 comments

Did you check the docs?

  • [X] I have read all the which-key.nvim docs

Is your feature request related to a problem? Please describe.

I tried to disable the popup on <C-w> using triggers_blacklist, but it didn't work. It keeps overriding my custom keymap.

Describe the solution you'd like

triggers_blacklist = {
    n = { "<C-w>" },
    i = { "j", "k", "<C-w>" },
    v = { "j", "k", "<C-w>" },
}

Describe alternatives you've considered

none

Additional context

No response

alex35mil avatar Jan 17 '23 20:01 alex35mil

Registering keymap via the plugin interface helps. Feel free to close the issue unless you think it is relevant.

alex35mil avatar Jan 18 '23 09:01 alex35mil

Same issue and also with <C-w>--it's overriding my hydra.nvim implicit keymaps where <C-w> is the body or "leader" keymap. Doesn't README imply triggers_blacklist should work?

rieje avatar Mar 14 '23 16:03 rieje

<C-w> is the binding used to switch windows by vim, did you switch off the popup for windows related events. See https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration, set presets.windows to false

Curs3W4ll avatar Mar 26 '23 17:03 Curs3W4ll

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] avatar Jul 06 '24 01:07 github-actions[bot]

check the new docs

folke avatar Jul 12 '24 19:07 folke