hlissner / zsh-autopair

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

Also delete pairs on backward-delete-word #34

Closed goonzoid closed 6 months ago

goonzoid commented 1 year ago

This is sort of a fix for #18, although in my shell, Alt + Backspace doesn't seem to delete a whole word. Ctrl + w does, though (it's a readline binding, if I'm not mistaken) and this makes it work in the same way that single character deletion does.

It's not impossible that I missed some edge cases, so let me know if you think that might be the case and I can dig a little deeper.

Thanks for a great plugin!

hlissner commented 6 months ago

If there are any edge cases, I haven't run into them yet. Thanks for your help, in any case.