[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specify completion without name
From: |
Chet Ramey |
Subject: |
Re: Specify completion without name |
Date: |
Thu, 05 Jan 2012 08:37:53 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
On 1/4/12 10:37 PM, Peng Yu wrote:
>> empty lines. There is no programmable completion mechanism to complete
>> on non-empty command names.
>
> I'm wondering if it is worthwhile to add such a feature. I have run
> into the problem that it is very slow to command complete an
> incomplete command especially when other programs are accessing the
> disk (note that I frequently open new terminals, so the caching done
> within a bash process does not help me much).
That's a pretty good idea. I'll take a look and see what I can do.
I have a feeling the most difficult part of the whole exercise will
be choosing an appropriately mnemonic option letter.
> If I can configure how to complete on non-empty command names, I could
> just check a file with all the commands in PATH are stored. By
> checking just a single file, presumable the search can be much faster
> than searching many directories.
Presumably you would also include aliases, shell builtins, and functions
in this file.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Specify completion without name, Peng Yu, 2012/01/04
- Re: Specify completion without name, Chet Ramey, 2012/01/04
- Re: Specify completion without name, Peng Yu, 2012/01/04
- Re: Specify completion without name,
Chet Ramey <=
- Re: Specify completion without name, Peng Yu, 2012/01/05
- Re: Specify completion without name, Chet Ramey, 2012/01/05
- Re: Specify completion without name, Peng Yu, 2012/01/05
- Re: Specify completion without name, Clark J. Wang, 2012/01/05
- Re: Specify completion without name, Peng Yu, 2012/01/05
- Re: Specify completion without name, Linda Walsh, 2012/01/11
- Re: Specify completion without name, Chet Ramey, 2012/01/11