Re: Command completion considering characters after the cursor?

2010-01-24 Thread Chet Ramey
On 1/23/10 1:04 PM, Peng Yu wrote: > On Mon, Jan 18, 2010 at 10:00 AM, Chet Ramey wrote: >> On 1/18/10 9:49 AM, Peng Yu wrote: >>> Suppose I have 'some.sh' in my command line, and my cursor is at '.' >>> >>> $some.sh >>> >>> Suppose there is only one command that start with 'some', which is >>> 's

Re: Command completion considering characters after the cursor?

2010-01-23 Thread Peng Yu
On Mon, Jan 18, 2010 at 10:00 AM, Chet Ramey wrote: > On 1/18/10 9:49 AM, Peng Yu wrote: >> Suppose I have 'some.sh' in my command line, and my cursor is at '.' >> >> $some.sh >> >> Suppose there is only one command that start with 'some', which is >> 'something.sh'. After I type TAB, I will have

Re: Command completion considering characters after the cursor?

2010-01-18 Thread Chet Ramey
On 1/18/10 9:49 AM, Peng Yu wrote: > Suppose I have 'some.sh' in my command line, and my cursor is at '.' > > $some.sh > > Suppose there is only one command that start with 'some', which is > 'something.sh'. After I type TAB, I will have 'something.sh.sh' in my > command line. > > $something.sh.

Re: command completion

2005-12-22 Thread Chet Ramey
Thomas Mellman wrote: > Before there was programmable completion, there was simply filename > completion. Now we have smart completion, which you can turn off with > "complete -r". But that doesn't revert to simple filename completion. > It still insists on doing "command completion". That means