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

Remapping 'd' and 'c' makes leap don't work. #16

Closed
phanen opened this issue May 27, 2023 · 2 comments
Closed

Remapping 'd' and 'c' makes leap don't work. #16

phanen opened this issue May 27, 2023 · 2 comments

Comments

@phanen
Copy link

phanen commented May 27, 2023

Thanks for your awesome work.

I often use black hole register, so I remap:

vim.keymap.set('n', 'd', '"_d');
vim.keymap.set('n', 'c', '"_c');

But it seems not work with this plugin.

@ggandor
Copy link
Owner

ggandor commented May 27, 2023

What do you mean "not work"? What happens (or doesn't happen)? I just remapped d to "_d and don't see any problem, spooky actions work fine.

@phanen
Copy link
Author

phanen commented May 28, 2023

Sorry, I mixed things up, spooky will work well if I set a longer timeoutlen.
As for keymap, It is basically a problem of whick-key:

  • if vim.keymap.set('n', 'd', '"_d'), type d will not trigger popup...

I learn that spooky works by mapping keys like rr ir to textobjects. It's wonderful and minimal, but we still need fast enough typing. A long timeoutlen (or a which-key without the problem of popup) can be a workaround now.
But It would be better if there's a indefinite pending between r and r, or i and r. (like issue #15)

So I'll close this issue.

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