echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
5.27k stars 190 forks source link

Add Module: Better Escape #86

Open Sduby22 opened 2 years ago

Sduby22 commented 2 years ago

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:

See: Better Escape

echasnovski commented 2 years ago

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.

matu3ba commented 2 years ago

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.

echasnovski commented 2 years ago

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