Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backward-dir/forward-dir
- X-seq: zsh-users 10371
- From: Christian Taylor <cht@xxxxxxxxx>
- To: "zsh-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: backward-dir/forward-dir
- Date: Thu, 15 Jun 2006 14:48:30 +0200
- In-reply-to: <F2D2D01E-449C-4734-8464-B396C0335670@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <F2D2D01E-449C-4734-8464-B396C0335670@xxxxxxxxxxxx>
> Is there a key binding that allows me to move forward or back to the
> next slash in a file path?
[...]
> Strangely, I have noticed that ":" also serves as a word delimiter,
> so M-b or M-f will stop on the colon for host:/path. So that
> suggests to me that there's a set of word delimiters defined somewhere?
Actually, it's the other way round: the WORDCHARS parameter specifies which
characters (in addition to alphanumeric characters) are considered part of
words. It contains several characters that make sense by default, so I think
your best course of action would be to just exclude slashes:
WORDCHARS=${WORDCHARS//\/}
mfg,
Christian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author