Re: Readline : move to previous/next path component

2008-10-17 Thread Andre Majorel
On 2008-10-16, Larry Clapp <[EMAIL PROTECTED]> wrote: > On Thu, Oct 16, 2008 at 09:12:23AM +, Andre Majorel wrote: >> On 2008-10-16, Aharon Robbins <[EMAIL PROTECTED]> wrote: >> > In article <[EMAIL PROTECTED]>, >> > Andre Majorel <[EMAIL PROTECTED]> wrote: >> >>Vi mode would help, but in Bash

Re: Readline : move to previous/next path component

2008-10-16 Thread Larry Clapp
On Thu, Oct 16, 2008 at 09:12:23AM +, Andre Majorel wrote: > On 2008-10-16, Aharon Robbins <[EMAIL PROTECTED]> wrote: > > In article <[EMAIL PROTECTED]>, > > Andre Majorel <[EMAIL PROTECTED]> wrote: > >>Vi mode would help, but in Bash, there's no way to switch between > >>it and Emacs mode on

Re: Readline : move to previous/next path component

2008-10-16 Thread Andre Majorel
On 2008-10-16, Aharon Robbins <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Andre Majorel <[EMAIL PROTECTED]> wrote: >>Vi mode would help, but in Bash, there's no way to switch >>between it and Emacs mode on the fly. > > Au contraire: > > set -o vi > set -o emacs By "

Re: Readline : move to previous/next path component

2008-10-15 Thread Aharon Robbins
In article <[EMAIL PROTECTED]>, Andre Majorel <[EMAIL PROTECTED]> wrote: >Vi mode would help, but in Bash, there's no way to switch >between it and Emacs mode on the fly. Au contraire: set -o vi set -o emacs -- Aharon (Arnold) Robbins arnold AT sk

Re: Readline : move to previous/next path component

2008-10-15 Thread Andre Majorel
On 2008-10-15, Chet Ramey <[EMAIL PROTECTED]> wrote: >> On 2008-10-15, Chet Ramey <[EMAIL PROTECTED]> 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. >> >

Re: Readline : move to previous/next path component

2008-10-15 Thread Chet Ramey
> On 2008-10-15, Chet Ramey <[EMAIL PROTECTED]> 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 pa

Re: Readline : move to previous/next path component

2008-10-15 Thread Andre Majorel
On 2008-10-15, Chet Ramey <[EMAIL PROTECTED]> 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

Re: Readline : move to previous/next path component

2008-10-14 Thread Chet Ramey
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. This is what I've come up with : > > \C-t: "\C-b\C-b\e\C-]/\C-f" > \C-y: "\C-]/\C-f" Readline doesn't have any built-in knowl

Readline : move to previous/next path component

2008-10-14 Thread Andre Majorel
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. This is what I've come up with : \C-t: "\C-b\C-b\e\C-]/\C-f" \C-y: "\C-]/\C-f" Three problems with this kludge : 1. The definition uses keys, not funct