I very commonly use
CTRL-W to adjust a previous path in the command line, like I'll bring up the directory of the current file or perhaps a previous
:e ... command from history that's close, and use
CTRL-W to remove the filename and maybe a path segment or two before just typing the new suffix.
One of the annoyances of this is that removing, say, the "foo-bar.baz" filename at the end of the path requires hitting
CTRL-W three times, and that particular chord is a little cumbersome.
So I was wondering if I could adjust the word boundaries to include '.' and '-' as word characters, but only in command mode.