Announcing ‘mini.clue’

announce
reddit
Show next key clues. Basically a ‘which-key’ + ‘hydra’ combo with different UI, implementation, and configuration
Author

Evgeni Chasnovski

Published

August 1, 2023

Originally posted on Reddit

Hello, Neovim users!

I am relieved to finally make the release of mini.clue - new module of mini.nvim to show next key clues. It can also be installed using separate GitHub repository.


‘mini.clue’ is basically a folke/which-key.nvim but with different implementation of how user input is processed. This allows it to have ‘hydra’-like submodes and be independent from ‘timeoutlen’ (built-in duration after which currently typed keys are forced to execute).

One important distinction from ‘folke/which-key.nvim’ is that ‘mini.clue’ can’t create mappings during its setup. It needs to be done separately, mostly because I believe that this (separation of mapping creation and showing setup) leads to a cleaner user config.

I love how this module turned out. Originally, I thought that it would be not hard to implement, but it became a really painful process to try to mitigate all Neovim’s built-in quirks (especially for Operator-pending mode). It is a huge relief to finally release this.

On a slightly sad note, this will replace the last Folke’s plugin in my config :(


Here are main features of ‘mini.clue’:

For more details see these tags in help:

For more information, see help file.


Please, check it out and tell me what you think! You can leave your suggestions either here in comments or in dedicated beta-testing issue.

Thanks!