Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Make _expand handle aliases (was Re: [PATCH] Make _expand_alias more usable as a completer)
- X-seq: zsh-workers 50200
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Lawrence Velázquez <larryv@xxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Make _expand handle aliases (was Re: [PATCH] Make _expand_alias more usable as a completer)
- Date: Wed, 11 May 2022 10:32:06 +0300
- Archived-at: <https://zsh.org/workers/50200>
- In-reply-to: <CAH+w=7ZafdORwuCkk7+0det41vDbiu++TaNiS_fn3HkrOhKgAQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDvg5-vdd_AHeiR9-TstXUh2-5j9yQNDns1mC2qR3zM_Tw@mail.gmail.com> <36227-1622676235.815398@zrY_.ZerV.zhJL> <CAHLkEDvYRtQETQfEGUA9FEcseRNT7kAhoiGM4KRANmi2aLq1sA@mail.gmail.com> <f67ff823-59fc-4271-8412-6fbbc07aacd3@www.fastmail.com> <CAHYJk3Sr1D2QJgT9pNduXLdpf8hBTsx558SVX+_QpSWkPN=9OA@mail.gmail.com> <CAHLkEDv5QTn_sPL7chv_YEbj3aGZ-hKJ5RbORyRaj4G=b91tpg@mail.gmail.com> <906332f9-027b-4b21-bb7f-3fd7118154af@www.fastmail.com> <CAH+w=7bhr0Gs1p1io6a9kG2bZS5Eqq9P+OD6y6NDRuNT36ZzUg@mail.gmail.com> <CAHLkEDs+4vv0xqq2u5g6msgpstrErFjqEFshHocfbqqYyh-SVQ@mail.gmail.com> <38d114d9-d4fc-4f50-bc55-2f8402ee126c@www.fastmail.com> <CAH+w=7btqB_f+tnOW22k_1479AnpX0hMyocd6TT9kOyUyLKMrA@mail.gmail.com> <CAHLkEDteZ_CxinAuAym3Um+uE-MMDUEe-E0mErPKDwvDDNWPjA@mail.gmail.com> <CAH+w=7ZafdORwuCkk7+0det41vDbiu++TaNiS_fn3HkrOhKgAQ@mail.gmail.com>
On Sat, May 7, 2022 at 11:39 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> I suppose it's better to be offered as part of
>> completing aliases, but listed separately, after the actual alias
>> completions.
>
> This is tricky, because if you complete (rather than expand) to a value that has multiple shell words, you can't enter normal menu completion -- the next TAB will find that the line has new words on it and start a new completion in that context.
I tested menu completion with multi-word entries and it works fine.
> Which might be the behavior you want here, but would definitely need to be a style setting.
I agree.
I've also been thinking about adding a zstyle extra-verbose for
showing what each alias stands for, but I'll leave that to a separate
patch.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author