Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<leader><Tab> does not work #105

Closed
Miloas opened this issue Jan 6, 2024 · 4 comments
Closed

<leader><Tab> does not work #105

Miloas opened this issue Jan 6, 2024 · 4 comments

Comments

@Miloas
Copy link

Miloas commented Jan 6, 2024

Description

<leader><Tab> keymap does not work as expected in wf.nvim, when we input <leader> then input <Tab> after wf.nvim's popup window showed.

Steps to reproduce

  1. Installing wf.nvim and then set keymap <leader><Tab> for something:
vim.keymap.set("n", "<leader><Tab>", "<C-^>", { desc = "switch to previous buffer" })
  1. Input <leader> show the popup window:
Screenshot 2024-01-07 at 00 02 28
  1. Then input <Tab>

  2. Nothing happened, seems like <Tab> cannot input in wf.nvim's which key input window

Expected behavior

If keymap is:

vim.keymap.set("n", "<leader><Tab>", "<C-^>", { desc = "switch to previous buffer" })

It should switch to previous buffer like we set.

Environment

  • Neovim version: Nightly
  • wf version: latest
  • Plugin clash: none
@Cassin01
Copy link
Owner

Cassin01 commented Jan 8, 2024

Thank you for issuing.
I can't check the work until the Jan-16 because I'm on the business trip. sorry for in convenience.

Cassin01 added a commit that referenced this issue Jan 21, 2024
@Cassin01
Copy link
Owner

I have fixed the issue. If you think the bug is not fixed, please notify me. Thank you for noticing!

@Miloas
Copy link
Author

Miloas commented Jan 21, 2024

I have fixed the issue. If you think the bug is not fixed, please notify me. Thank you for noticing!

@Cassin01 Thanks for your fix, it works like a charm.

FYI, but my old config

vim.keymap.set(
  "n",
  "<leader>",
  which_key({ text_insert_in_advance = "<leader>", key_group_dict = _G.__key_prefixes["n"] })
)

seems borken.

When I input <space>:
Screenshot 2024-01-21 at 21 54 54

but this works (text_insert_in_advance = "<leader>" => text_insert_in_advance = "<Space>"):

vim.keymap.set(
  "n",
  "<leader>",
  which_key({ text_insert_in_advance = "<Space>", key_group_dict = _G.__key_prefixes["n"] })
)

I dont know this is feature or bug or my config error, thanks

@Cassin01 Cassin01 reopened this Jan 22, 2024
@Cassin01
Copy link
Owner

@Miloas Thank you for noticing. I have add support for lowercase .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants