Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug
- X-seq: zsh-workers 44579
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug
- Date: Wed, 24 Jul 2019 17:59:49 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fCPcsWZzINHkyeF6hekPftd5LOU55OM6RwifhEIqGiA=; b=ir1EkpIrTYHaQW6u28Wmn5ZDaedhngS1aALpJ+oXAcWtbha/GFXRpoqlUo7bKhnYFY aSDkeFy1EqD9vr9ZvxrnS9dbWUF7q+kGROYy6yDwI9IvlDkUj5RzOw4QeUVoiCazvE75 mzvRHiAv5B5J4oXNol6ZxHq1P0DLXDiLBP6geklJ6VC8mupOlcfSVDmYCw33qrg2IhMi wvdyOwmR6sLGnevdgupj4Bf31CLfmHjZ647Nz/muLM/41d4N34VOKeAeV5M8v+WNG/Og THOUyQ/KQwOz1mqyXL34R72QS+eD2XG0Bncqx4CB1YkHYuxigsdMKFvMkDUadopq0q+8 vB2A==
- In-reply-to: <1563983307.5930.28.camel@samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190724141945epcas1p30d69e2d7ba1ce29f994ff486284d4553@epcas1p3.samsung.com> <CAKc7PVCfdhuam4WPxhO2TWkpRpyHdwoCTXH=Eshdb=pGRO0TxA@mail.gmail.com> <1563978475.5930.14.camel@samsung.com> <CAKc7PVAcW8BhwGQaXYWSW-tkMx6b7LLQsJ35pjq9567NY+C=9w@mail.gmail.com> <1563981336.5930.16.camel@samsung.com> <CAKc7PVAN7BtCRRX0rJAN29PUbTQyR6ot_SicMLzoHFFE4CVz+Q@mail.gmail.com> <1563983307.5930.28.camel@samsung.com>
On Wed, 24 Jul 2019 at 17:48, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>
> On Wed, 2019-07-24 at 17:39 +0200, Sebastian Gniazdowski wrote:
> > I don't want to change disable's completion. What I want is that:
> >
> > % decl<TAB>
> >
> > will not try to complete "declare".
>
> declare is usually a builtin. If you disabled that it should
> remove it from the list of enabled builtins and reserved words
> and it won't complete.
>
> disable -r declare
> disable declare
Ah, didn't expect that declare can disable reserved words. Thanks!
> (they're different because the reserved word needs to do
> special parsing for arrays that an ordinary builtin doesn't.)
Good to know.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author