hlissner / zsh-autopair

Auto-close and delete matching delimiters in zsh
MIT License
509 stars 37 forks source link

Delete automatically created closing character on backspace #9

Closed lkmill closed 8 years ago

lkmill commented 8 years ago

Great plugin!

Would be nice if the automatically created closing character was deleted if the opening character is removed and they don't contain anything.

Ie, if i press ", immeditaly followed by backspace i would like both " to be removed.

EDIT: I just noticed normal backspace works just fine! but i always use Ctrl + H, which does not work.

hlissner commented 8 years ago

zsh-autopair now binds ^h, so it should work now. Let me know!

lkmill commented 8 years ago

Works brilliantly! Thanks a lot!