Zsh has a bit of completion-related automation that's nice most of the time: after pressing Tab, a space is inserted automatically (or some other appropriate character such as ,
inside braces).
I want to keep this feature except in one case: when I type &
or |
after pressing Tab, I don't want the space to be removed. I prefer the space to be removed on a ;
, and I definitely want to suppress the automatically-inserted comma when pressing Tab }
in a brace enumeration.
This feature works by default both in the “old” (compctl
) and the “new” (compadd
) completion systems. I'm only interested in the new system.
How can I tune the automatic suppression of the automatic suffix inserted by completion?