Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Let 'extra-verbose' completion show alias values



On Mon, Jun 7, 2021 at 3:29 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> On Fri, May 28, 2021, at 6:02 PM, Marlon Richert wrote:
> > See attachment.
> >
> > Attachments:
> > * 0001-Let-extra-verbose-completion-show-alias-values.txt
>
> Any feedback on this?

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.




Messages sorted by: Reverse Date, Date, Thread, Author