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

Re: 'remove slash' bug



On Jun 15,  3:40pm, Danny Dulai wrote:
> Subject: Re: 'remove slash' bug
> Quoting Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx):
> > On Jun 15, 12:34pm, Timothy J Luoma wrote:
> > > 
> > > $ cd /usr/loca/bin
> > > 
> > > Shouldn't the cursor between the "c" and the "a" be enough?
> > 
> > It is if you have glob_complete set.

I apologize; that statement is completely (ahem) wrong.  My only excuse
is that I don't use glob_complete myself and I didn't check my facts
because I was in a hurry today.  I hate being misleading; forgive me.

To try to make up for it ...

> cd /usr/loca/bin/
> 
> If the cursor is on the /, after the loca, and i hit tab, it beeps and
> puts the cursor after the last /.
> 
> In bash, this will complete the loca to local. Is there any way to achive
> this result in zsh?

This one, however, I can answer correctly:

setopt completeinword

> Also, if you move the cursor over the c in loca and hit tab in bash, it
> will give me two choices, local and lost+found. Any way to do this in
> zsh?

Re-bind the TAB key to expand-or-complete-prefix, rather than binding it
to expand-or-complete.



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