[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add nofirstword completion option
From: |
Chet Ramey |
Subject: |
Re: [PATCH] Add nofirstword completion option |
Date: |
Wed, 23 May 2018 09:15:20 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 5/23/18 5:44 AM, Luca Boccassi wrote:
> So by that, do you mean that it's possible to stop autocompleting to
> files/dirs/binaries just using a programmable completion script? Or did
> I misunderstand? Apologies if that's the case.
>
> Right now we do have completion scripts to implement the help text for
> the commands (and for the empty set, which displays a general help with
> a summary), what's missing is stopping files/dirs/binaries completion
> for the first word, so that exclusively the commands are shown.
Exactly. What you want, I gather, is a way to restrict completions on the
command word to the small set of router commands valid in whichever mode
the console happens to be. Programmable completion provides a mechanism to
do that, but there is a missing piece of functionality that would allow it
to work on the command word. That's the change I would prefer to see.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature
- [PATCH] Add nofirstword completion option, Luca Boccassi, 2018/05/18
- Re: [PATCH] Add nofirstword completion option, Chet Ramey, 2018/05/20
- Re: [PATCH] Add nofirstword completion option, Luca Boccassi, 2018/05/23
- Re: [PATCH] Add nofirstword completion option,
Chet Ramey <=
- Re: [PATCH] Add nofirstword completion option, Luca Boccassi, 2018/05/23
- Re: [PATCH] Add nofirstword completion option, Chet Ramey, 2018/05/23
- Re: [PATCH] Add nofirstword completion option, Luca Boccassi, 2018/05/25
- Re: [PATCH] Add nofirstword completion option, Chet Ramey, 2018/05/25
- Re: [PATCH] Add nofirstword completion option, Luca Boccassi, 2018/05/29