Keymap submode #1781
Closed
drowning-cat
started this conversation in
Ideas
Keymap submode
#1781
Replies: 1 comment 1 reply
-
Thanks for the suggestion! This feature is already present in 'mini.nvim' via special configs of 'mini.clue'. Here is a relevant part of help. It is not exactly one-to-one to Hydra, but it gets the job done within the design of already present module. There also might be small improvements in the area. Se #1722. Closing as already possible with 'mini.clue'. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any chance of implementing something like this in the future?
Short Explanation
keymodes.mp4
A key combination triggers a submode that temporarily alters the behavior of keymaps until explicitly exited. This can be very useful for actions like resizing. For example, pressing
<M-r>
could enter a submode wherehjkl
resizes the window separator, and pressingq
or<Esc>
exits the submode.Caveats
Submode should override buffer-local keymaps. This means that when a new window is created, keymaps should be dynamically applied to it.
To be honest, I don’t expect this feature to become widely popular or a perfect fit for the mini-ecosystem. However, I hope you’ll at least consider adding or implementing it, as this repository is very well maintained and this feature could fill a gap for other plugins, such as https://github.com/mrjones2014/smart-splits.nvim.
Beta Was this translation helpful? Give feedback.
All reactions