kill word (werase) with ctrl-w
considers -
as separator instead of space #8743
Closed
Description
Describe the bug
When using ctrl w to kill the word it consides -
as separator instead of space.
To Reproduce
- lets say we have this in the zsh terminal
➜ ~ this is a word-with-hyphen
pressingctrl + w
deletes the wordhyphen
first and thenwith
. i.e considering the-
as the delimiter. However i'd like to use space as the delimiter instead. so that pressing ctrl-W
deletes the whole wordword-with-hyphen
. If i dont useOh My Zsh
settings it deletes the whole word ignoring-
, which is expected.
Expected behavior
ctrl-W should delete the whole word ignoring -
Screenshots and/or Recordings
N/A
Desktop (please complete the following information):
- OS / Distro: macOS
- Latest ohmyzsh Update?: Yes
- ZSH Version: 5.7.1
- iTerm2