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 49038
- 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] Let 'extra-verbose' completion show alias values
- Date: Wed, 9 Jun 2021 16:27:23 +0300
- Archived-at: <https://zsh.org/workers/49038>
- In-reply-to: <CAH+w=7a1C04fbTSm=7uupfVRaLybY3qtu92wReZKpjod+WPbjQ@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>
On Tue, Jun 8, 2021 at 11:11 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> 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.
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author