Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14132 > unrolled thread
| Started by | Luca Boccassi <bluca@debian.org> |
|---|---|
| First post | 2018-05-23 14:34 +0100 |
| Last post | 2018-05-23 14:34 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] Add nofirstword completion option Luca Boccassi <bluca@debian.org> - 2018-05-23 14:34 +0100
| From | Luca Boccassi <bluca@debian.org> |
|---|---|
| Date | 2018-05-23 14:34 +0100 |
| Subject | Re: [PATCH] Add nofirstword completion option |
| Message-ID | <mailman.326.1527082473.1292.bug-bash@gnu.org> |
[Multipart message — attachments visible in raw view] — view raw
On Wed, 2018-05-23 at 09:15 -0400, Chet Ramey wrote: > 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 Ah I see - I am more than happy to work on that instead, but (forgive my n00bness, first time hacking on Bash) could you please describe in a couple of lines what the missing piece is and what it should look like? Thanks! -- Kind regards, Luca Boccassi
Back to top | Article view | gnu.bash.bug
csiph-web