Re: Command-line completion

[prev] [thread] [next] [lurker] [Date index for 2005/02/01]

From: Luke Kanies
Subject: Re: Command-line completion
Date: 20:08 on 01 Feb 2005
Abigail wrote:
> I'm confused. What do you consider "the right thing"? For me, bash
> *does* do the right thing - if there are alternatives, one tab expands
> till there's an alternative, hitting tab a second time lists the
> alternatives.  Unless there are a lot of alternatives, then it will
> tell me how many alternatives there are, and ask me whether I want to
> see all the alternatives.

I know of three main types of completion; I'll describe them as I think 
of them, but this is by no means canonical:

bash-style:
Exactly what you describe above.

vim-style:
First tab expands to the alphabetically-first file matching what you've 
typed so far.  Further tabs cycle through the other matches.

ksh-style:
(Uses * in control mode; also works in bash.)  Puts all matches on the 
prompt.

He is asking for vim-style completion, rather than bash-style.  I happen 
to heartily feel oppositely, but so be it.

-- 
"I used to get high on life but lately I've built up a resistance."
---------------------------------------------------------------------
Luke Kanies | http://abstractive.org | http://www.bladelogic.com

There's stuff above here

Generated at 23:00 on 03 Feb 2005 by mariachi 0.52