zsh-users
 help / color / mirror / code / Atom feed
* ctrl w  behaviour: jump in front of separating characters?
@ 2021-08-24 16:04 chiasa.men
  2021-08-24 22:32 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: chiasa.men @ 2021-08-24 16:04 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]

my $WORDCHARS is set to ''.
Consider the following path: ls -l -a --color /long/path/with-some-things/to/
consider.txt
the following lines represent the modification by pressing ctrl + w each time:

ls -l -a --color /long/path/with-some-things/to/consider.
ls -l -a --color /long/path/with-some-things/to/
ls -l -a --color /long/path/with-some-things/
ls -l -a --color /long/path/with-some-
ls -l -a --color /long/path/with-
ls -l -a --color /long/path/
ls -l -a --color /long/
ls -l -a --color /
ls -l -a --

What I actually want is that it goes from
ls -l -a --color /
to
ls -l -a --color
and after that to
ls -l -a

is that even possible just with setting the WORDCHARS accordingly?
It seems the problem would be solved by jumping before the separator and not
staying behind it
That would result in the following sequence (I guess)
ls -l -a --color /long/path/with-some-things/to/consider
ls -l -a --color /long/path/with-some-things/to
ls -l -a --color /long/path/with-some-things
ls -l -a --color /long/path/with-some
ls -l -a --color /long/path/with
ls -l -a --color /long/path
ls -l -a --color /long
ls -l -a --color # mind the blank, which is unwanted too
ls -l -a # that unwanted blank again


[-- Attachment #2: Type: text/html, Size: 3600 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-25 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 16:04 ctrl w behaviour: jump in front of separating characters? chiasa.men
2021-08-24 22:32 ` Bart Schaefer
2021-08-25 18:43   ` Daniel Shahaf
2021-08-25 19:29     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).