I've recently started using ZHS with oh-my-zsh script pack. It does excellent job except of weird ^W shortcut behavior.
For example if I have following command line and symbol ▮ denotes cursor position.
$ ./command_name --option1 value --option2=value ▮
Sequentially pressing ^W for several times I'd get following content in command prompts:
$ ./command_name --option1 value --option2=▮ $ ./command_name --option1 value --▮ $ ./command_name --option1 ▮ $ ./command_name --▮ $ ./command_▮ $ ./▮
What bugs me is that after third press cursor stops not after deleting
--, but also eats
value. I suspect that all symbols such as "_-" are considered as separators as spaces and zsh continues eating symbols until it deletes some non-separator chars, but I have no idea how to change this behavior.