Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion within a function
- X-seq: zsh-users 26308
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: completion within a function
- Date: Sat, 2 Jan 2021 18:28:30 -0600
- Archived-at: <https://zsh.org/users/26308>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/CAMP44s1zOR_zCOYMi_eWGH6ygsm05CC1WNMtMFxZD_qZxejM7g%40mail.gmail.com>
- In-reply-to: <CAH+w=7adMRpgA97=Y-m_U--HW0APgVH3Bq4Y3=Zjy9uoh_7fzg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <c9416d92-29b1-68e5-e51e-d7152f1fbc4b@eastlink.ca> <CAH+w=7bT5GaGvWih=A8KCyUe4N6k25VxDLcpPA5C1yGn38Zimg@mail.gmail.com> <819ec6fe-5af2-2e97-c5bb-f434b1de86d7@eastlink.ca> <CAH+w=7bSbhdHGC89daK+8o0psLhdw969=GviC4s554t37_zrDw@mail.gmail.com> <520ce98a-4394-726d-3d12-8ef414e881c9@eastlink.ca> <CAN=4vMquijkmnETv2xUdnpGcJoQPaimXT1+i+daHoivLmpK+TA@mail.gmail.com> <f490bbd8-dc96-341d-e11b-a5d957c9268e@eastlink.ca> <CAMP44s13tqgmNgUcuAxUJyJ_LGjDSEE1FJ64k2r12UogbW0r0w@mail.gmail.com> <CAH+w=7a+9_jX8xkvKjCVhQWXQMqQkWvahHyzTj=Lm_DgC=o5kw@mail.gmail.com> <CAMP44s1KT0B-wGmEndZUW2xkh8t-mawKA3y5yaqAH3GjiEXuCA@mail.gmail.com> <CAH+w=7ZqpLfuoqdJ1yRRDR37DHLK5oOQP+878yaWA+M119QdhA@mail.gmail.com> <CAMP44s3qy8OToPuV9DH2fnU=eDYuZYFGmvoDUdmexdCYC_FpSg@mail.gmail.com> <CAH+w=7ZYcLH0DhnDMTGGKE1VFCVT15K0RFpDbQvZH_EvD1ywHg@mail.gmail.com> <CAH+w=7bL1RodoTiNQykLESwK5v3ppGYs_AG-bGcgPqnf-kC_Cw@mail.gmail.com> <CAMP44s3LE2ccjgB9mxjZNifUX0evDhgUSh9oWpNM3GDgM0DwVQ@mail.gmail.com> <CAH+w=7bnFjxfriMt-BVau66A3OZGUdKcbCDXX8G3pD_i=_+kTQ@mail.gmail.com> <CAH+w=7bZXGvVqeftVn4FnPd+G9Y5tm+YU6yV9wkgE1vXTEVLKw@mail.gmail.com> <CAH+w=7adMRpgA97=Y-m_U--HW0APgVH3Bq4Y3=Zjy9uoh_7fzg@mail.gmail.com>
On Sat, Jan 2, 2021 at 4:25 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jan 1, 2021 at 4:27 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Ahh ... because it's zpty, the cursor movements get captured along
> > with everything else.
>
> How about this?
>
> ubuntu% complete git --
> --bare
> --exec-path
> --git-dir
> --help
> --html-path
> --info-path
> --literal-pathspecs
> --man-path
> --namespace
> --no-pager
> --no-replace-objects
> --paginate
> --version
> --work-tree
I only get 'git --'. It probably depends on your ~/.zshrc
I'm trying it like this:
ZDOTDIR=/tmp/empty-home zsh /tmp/complete-bart 'git --'
The same with my version works fine.
> Earlier, Felipe wrote:
> > LISTMAX=1000 # There seems to be a bug in zsh with several thousands
>
> Could this be happening because "zpty -r" will only return up to one
> megabyte of output? If not, what's the symptom of the bug?
Probably. The symptom I experienced is that the command never ends,
apparently because the end marker never arrives.
However, I'm trying right now with something as low as 10, and it
still hangs. So I probably added that comment just to highlight that
anything above 1000 is going to fail regardless.
Cheers.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author