[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Readline : move to previous/next path component
From: |
Andre Majorel |
Subject: |
Re: Readline : move to previous/next path component |
Date: |
Wed, 15 Oct 2008 09:29:39 +0000 (UTC) |
User-agent: |
slrn/pre0.9.9-97 (Debian) |
On 2008-10-15, Chet Ramey <chet.ramey@case.edu> wrote:
> Andre Majorel wrote:
>> One frequently needed function that readline does not seem to
>> have is a way to move to the beginning of the next or previous
>> path component.
>
> Readline doesn't have any built-in knowledge of Unix pathnames.
For my edification, is the relative lack of Unix/shell support
due to
1. "can of worms",
2. "readline is supposed to be general",
3. "there is no need for it" ?
> You might want to take a look at emacs-mode M-b, which moves backward
> by strings of alphabetic characters, and M-f, which moves forward.
> You might have to play around with a macro that moves forward additional
> characters past the `/', but that should get you further.
Thanks, but that would be even worse. Instead of just breaking
down at the ends of pathnames, it will break every time a path
component contains a non-letter, which is often for me.
--
André Majorel <URL:http://www.teaser.fr/~amajorel/>
You measure democracy by the freedom it gives its dissidents, not
the freedom it gives its assimilated conformists -- Abbie Hoffman.