windwp / nvim-autopairs

autopairs for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Give ability to rewind or cancel fast wrap

bew opened this issue · comments

Is your feature request related to a problem? Please describe.
When I trigger fast wrap and press one of the hint, I get the choice of adding before or after.
But when I mistyped (touch typing can be hard!..) or want to cancel the whole operation pressing backspace or escape the end pair gets inserted anyway.

Describe the solution you'd like
At this point I'd like to be able to hit <Esc> to cancel the entire fast wrap attempt.
Additionally I'd like to be able to hit <BS> (backspace) to go back one step and see again all the hints.

Describe alternatives you've considered
Undoing the insert after that.. But it's not great..

Thanks for taking a look @windwp

❌ However you didn't implement the behavior I described, is that intended?
Given a long string, I trigger fast wrap and type j to select the j hint for example:

  • When I press <esc> the fast wrap operation is indeed cancelled
  • 👉 But when I press <BS> (backspace), the fast wrap operation is also cancelled, but I wanted to go back to the hint selection 👀

Friendly ping @windwp ☝️