Iron-E / nvim-libmodal

Create new "modes" for Neovim!
Other
118 stars 7 forks source link

_Catch All_ Mode mapping #39

Closed CHr15W3 closed 4 months ago

CHr15W3 commented 4 months ago

Hi, Is there a canonical way to do a catch all mapping, i.e. a default what should happen if a key is pressed that is not part of the mode? Thanks a lot!

Iron-E commented 4 months ago

This could be achieved with the functional API, though the alternate table implementation cannot do this.

Is this suitable for your use case or would it be beneficial to use tables for this?

CHr15W3 commented 4 months ago

yes, I think it would be beneficial, purely from the "ease of setup" sense alone..

In my particular case this is because I am transitioning away from hydra, which unfortunately does not work any more for me.

Iron-E commented 4 months ago

Does #40 fit your use case?

CHr15W3 commented 4 months ago

Yes, thank you so much, that looks perfect