Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14130
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Luca Boccassi <bluca@debian.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: [PATCH] Add nofirstword completion option |
| Date | Wed, 23 May 2018 10:44:12 +0100 |
| Lines | 64 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.312.1527068663.1292.bug-bash@gnu.org> (permalink) |
| References | <20180518110611.5099-1-bluca@debian.org> <96bcb197-40d1-aac8-c214-c513a6db805d@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-5w4oiyNF1oO+U/VZzciU" |
| X-Trace | usenet.stanford.edu 1527068664 1910 208.118.235.17 (23 May 2018 09:44:24 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | chet.ramey@case.edu, bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version; bh=r8t8J2hNUhNb6aYR8KHGFeWa5iMWAUy3lE+uLWT1iek=; b=riGFhB2YLWTRgxK6vydTv//g3Doeg2qNU0PuHPfmxz9dyLOe/M9EB0JYU5Zty7WwHy VllPe0thFoZt1pZjCZv6V7H5OP47T9kZxBA2lBOVCZQpogOZsc+fvhUmG/gduXCtsJAQ 9CiCmDK+R139zg4WN3EFyyRKPQSWQjrjkCFxGkHEDke7y5BJiTkRX9dUeQZfKR9rT8FV ihbPDdCccPbMK4P93YsFRMgs2BLcf5Ez5sX8D1XhU7Sa7JP2LOaT7WfUBP4cAPvLgFwp PWQEpnDfClAd+NwnrDnjSBARTv5Ej6tqNesDFMpfsxXndUjQNSVPJK7GTATzk0ACgfNl WsNw== |
| X-Gm-Message-State | ALKqPwdDgRe/ICITxKYuvYSreqFzJvW2gzoYXKF/jQ3WnKAkRkghPdCX eotkabClgWFxmHhM6F+jGfaphgLX |
| X-Google-Smtp-Source | AB8JxZol3El+sILa4SO1tnbcn6VjlrALp97zlj74g1ZsqV3Z7qCh/fXobiNf9Sp6v8ZnQ/YVacNM7Q== |
| X-Received | by 2002:adf:8b02:: with SMTP id n2-v6mr1873464wra.282.1527068655571; Wed, 23 May 2018 02:44:15 -0700 (PDT) |
| In-Reply-To | <96bcb197-40d1-aac8-c214-c513a6db805d@case.edu> |
| X-Mailer | Evolution 3.22.6-1+deb9u1 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] |
| X-Received-From | 209.85.128.194 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14130 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Sun, 2018-05-20 at 15:34 -0400, Chet Ramey wrote: > On 5/18/18 7:06 AM, Luca Boccassi wrote: > > Network operating systems traditionally have provided a command > > line interface with "operation mode" and "configuration mode", with > > different auto-completion behaviour - specifically, with a small > > set > > of supported commands that are printed using the auto-completion > > shortcut key, depending on the mode. > > In order to be able to implement such modes using Bash, Linux and > > Free > > Software, it's necessary to be able to optionally disable > > auto-completion on the first word, so that the relevant help text > > (depending on the mode) can be printed on the console instead. > > Add and document a nofirstword completion option to implement this > > feature. > > I don't like this, and don't see it as having much general use. If > this > functionality is required, I would rather see it implemented as a > programmable completion mode (and a new option to `complete') that > can be > used to auto-complete command names. > > Chet Hello Chet, Thanks for your feedback! 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. -- Kind regards, Luca Boccassi
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [PATCH] Add nofirstword completion option Luca Boccassi <bluca@debian.org> - 2018-05-23 10:44 +0100
csiph-web