mini.nvim icon indicating copy to clipboard operation
mini.nvim copied to clipboard

Add Module: Better Escape

Open Sduby22 opened this issue 3 years ago • 3 comments
trafficstars

Contributing guidelines

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
  • j will be immediately echoed back on screen when pressed. (if set imap jk <esc>, j wont be echoed until timeoutlen expired or you pressed something other than k. )

See: Better Escape

Sduby22 avatar May 28 '22 17:05 Sduby22

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.

echasnovski avatar May 28 '22 18:05 echasnovski

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.

matu3ba avatar Nov 12 '22 20:11 matu3ba

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'.

echasnovski avatar Nov 13 '22 08:11 echasnovski