Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: backward-dir/forward-dir



On 6/15/06, David Kulp <dkulp@xxxxxxxxxxxx> wrote:
Is there a key binding that allows me to move forward or back to the
next slash in a file path?

In emacs shell mode, M-b and M-f will move the cursor to the next
level of a /long/path/to/file.
In zsh, M-b and M-f jump over the entire path.  But I usually want to
make a small edit in an existing 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?

Thanks in advance.

I don't quite remember where i got this from, but it does what you
want, http://mikachu.ath.cx/slask/dot-delete-to , if someone wants to
replicate it inline so it's archived go ahead, but i don't trust gmail
to get everything right.

--
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author