mini.nvim
mini.nvim copied to clipboard
Add Module: Better Escape
Contributing guidelines
- [X] I have read CONTRIBUTING.md
- [X] I have read CODE_OF_CONDUCT.md
Module(s)
https://github.com/max397574/better-escape.nvim
Description
a better escaping module for those who prefer 'jk' or 'jj' to normal esc or Ctrl-C
This module provides better experience than simply imap jk <esc>, such as:
- Customizable delay which is independent from
timeoutlen jwill be immediately echoed back on screen when pressed. (if setimap jk <esc>,jwont be echoed untiltimeoutlenexpired or you pressed something other thank. )
See: Better Escape
That is an interesting suggestion. Thanks!
I don't think just mimicking this (already Lua based) plugin is the way to go, though. This functionality might be a part of some more general module that unobtrusively tracks keys and does something when certain key sequence is seen. I'll think about it.
Better alternatives are 1. https://github.com/anuvyklack/hydra.nvim, 2. https://github.com/Iron-E/nvim-libmodal and both dont rely on hacky things like timeoutlen.
Better alternatives are 1. https://github.com/anuvyklack/hydra.nvim, 2. https://github.com/Iron-E/nvim-libmodal and both dont rely on hacky things like
timeoutlen.
Yeah, I'll look more closely at them when attempting 'mini.clue'.