1

I have my iTerm2 configured with a shortcut to delete a word (keyboard mapping of Hex code 0x17). However, I want it to delete until reaching a whitespace:

Current: cd hello-world -> cd hello-

Wanted: cd hello-world -> cd

Is there a way to configure the non-word separators somehow? Or to achieve this by other means?

1 Answers1

2

Thanks to @Kusalananda - This answer seems to do it: Adding the following to the .zshrc file:

autoload -U select-word-style
select-word-style whitespace