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

Making escape work to cancel exchange action

Open asmodeus812 opened this issue 3 years ago • 1 comments

Hi, great plugin, a nice replacement for the vim script alternatives. I was wondering if it could be made to respect esc when the exchange is initiated. I.e after the first cx[motion], instead of going off with cxc, to cancel to use . Something similar to how nvim surround works, which is also in a way a two step process (sometimes, depends on the action, but the idea is the same). Or I imagine something like a buffer local variable could be set to allow you to know if you are in the exchange state.

asmodeus812 avatar Aug 12 '22 04:08 asmodeus812

That's a good idea ! I'll try to do something

gbprod avatar Aug 12 '22 05:08 gbprod

I've made something here : #43 Do you want to try before I'll merge ?

gbprod avatar Aug 23 '22 07:08 gbprod

Merged ! Thanks :)

gbprod avatar Aug 24 '22 07:08 gbprod