Skip to content

kill word (werase) with ctrl-w considers - as separator instead of space #8743

Closed
@chinmayb

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
    pressing ctrl + w deletes the word hyphen first and then with. 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 word word-with-hyphen. If i dont use Oh 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

Metadata

Assignees

No one assigned

    Labels

    SupportRequest for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions