help / color / mirror / code / Atom feed
From: "chiasa.men" <chiasa.men@web.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: ctrl w  behaviour: jump in front of separating characters?
Date: Tue, 24 Aug 2021 18:04:01 +0200	[thread overview]
Message-ID: <1669747.SQSiQHpE4G@march> (raw)

[-- 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/
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 /
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 --]

             reply	other threads:[~2021-08-24 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 16:04 chiasa.men [this message]
2021-08-24 22:32 ` Bart Schaefer
2021-08-25 18:43   ` Daniel Shahaf
2021-08-25 19:29     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1669747.SQSiQHpE4G@march \
    --to=chiasa.men@web.de \
    --cc=zsh-users@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).