Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Let 'extra-verbose' completion show alias values
- X-seq: zsh-workers 49176
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: "Marlon Richert" <marlon.richert@xxxxxxxxx>
- Subject: Re: [PATCH] Let 'extra-verbose' completion show alias values
- Date: Sun, 18 Jul 2021 19:13:20 -0400
- Archived-at: <https://zsh.org/workers/49176>
- In-reply-to: <CAHLkEDsfx8+obaf99LCWn2OW2TYwFR4zeTk=qhqE-Ng=LYaLmQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDtg50kBkKoEfoW-wQ42bcrfZNLEWjDPDqnHunhmk0NRkw@mail.gmail.com> <8d57e329-337b-4815-8964-efcf10949595@www.fastmail.com> <CAH+w=7a1C04fbTSm=7uupfVRaLybY3qtu92wReZKpjod+WPbjQ@mail.gmail.com> <CAHLkEDsfx8+obaf99LCWn2OW2TYwFR4zeTk=qhqE-Ng=LYaLmQ@mail.gmail.com>
On Wed, Jun 9, 2021, at 9:27 AM, Marlon Richert wrote:
> On Tue, Jun 8, 2021 at 11:11 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > I'm probably not going to take responsibility for committing this, but:
> >
> > If you do NOT have { zstyle ':completion:*' group-name '' } this
> > behaves a bit oddly. External, builtin, and alias are all grouped
> > together, causing strange layout (the descriptions line up for
> > everything but the alias):
> >
> > valgrind -- a suite of tools for debugging and profiling programs
> > valgrind.bin -- a suite of tools for debugging and profiling programs
> > valgrind-di-server -- Experimental debuginfo server for valgrind
> > valgrind-listener -- listens on a socket for Valgrind commentary
> > vared -- noglob vared
> > vdir -- list directory contents
> > vftovp -- convert virtual font (vf) files to virtual property li...
> > vgdb -- intermediary between Valgrind and GDB or a shell
> > (etc.)
> >
> > Also the set of names is not unique-ified, so if "vared" is an alias
> > (as in my test case) it also re-appears in the multi-column listing of
> > external commands because of the presence of the vared function in the
> > fpath. Both of these issues go away with group-name styled.
> >
> > I have no opinion on whether these effects are significant enough to
> > be in need of repair, just making mention.
>
> This also happens if you have extra-verbose but no group-name and you
> get both command & parameter completions in the same list:
>
> % v
> vared -- vared
> vim -- Vi IMproved, a programmer's text editor
> vim -- vim
> vimdiff -- edit two, three or four versions of a file with Vim and
> show differences
> vimtutor -- the Vim tutor
> vis -- display non-printable characters in a visual format
> vm_stat -- show Mach virtual memory statistics
> vmmap -- Display the virtual memory regions allocated in a process
> vtool -- Mach-O version number utility
> vared venc_data_dump vi view visualinfo
Any other feedback on 48947?
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author