From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6733 invoked from network); 9 Jun 2021 13:28:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2021 13:28:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623245296; b=lPkkxBoJeptCUzy2mvHwn2YnziCtyRljijWINjteMmWNLgxCJGaAGANrwQB7rOLbSJkm95smcz CKkxEgz0FRm9oGgk4Gvtf65nlY7p/b8SqHWoXuqeUODXPOWVdoqsxoioVFGhYnb0mddiDo4Luo xb8GvsZvo8wNfSCIYth1axJTiCZgrv71en0+xymjB/LQhs9+n7/X8IJ5TqtL47oSvm3p+n0bDx cSvT7Bhdny7xhRnA5tJf9hdfJG3pr8in7Lelpfs4HEU+ZXrfKGD/nuu71AE57PKDp6AV7xcf2E YuZIqKj6nlUwKJrl87n4tfOviwcH6sZuBmov0MT32oyIFA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623245296; bh=Wt2oXgrta1x9jQEfyyPBwf88j959WKrRVLIdsq8jDFo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=0TjsDA7YF9ya8914uYLqkU9MhdvFWRmlancckMvc375g2KzGQAV+H1oAnPSyxsfaXj4piBjcii STNLZYusw7z8BTVQKdt3am0bY2Nddl1vGAqAIRXbqbVgqUamO5Jqeyin2/yYbM91YS88CQzdHU /xJPjZ2Dr59P4OZtFrzvE/kpW0dxBD0N4GPDS8y8DsDEPielBaed8eLA7zrHZciWh2JF1y7wv7 kMq/vFJPDebk6Bnt5Q+SxXo4Lj5W8pvqu+0FThjrO3eitt4VcEQOcXzvHNuv4f2eCwwFg8w2ix 3QdJf0dWXJY2iQkVJvvP5mOFxdAJ4j9OdZkdscX20HnurA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=XpuZCzHEx9WQs8oZPz/WY1tJhUXqphxKfmrLHneumqM=; b=s+l/kMXKsxji4fYpKCL6BgyEze omlSv5MTLznPVafrQS6g2plfk/5/7+CgFJxRG8TZ3tHVYcf5MVLiSWbL106w3K/6J7Qijoco5OX9e 9kKNz888aU7gAz0DmhFNOn6QxZpFrIwDZGnSrSt3PR8ZGiFzqMgjCjuOMwQcFmhCY239YfjOBrzDK fM0kFj6UDf4aQzu/61tj5IZFOq8s5h5bqrJtyqRScvN8vo9vs0EMKBx4vxrq9QcU2goG7EHWlO+oG eDLn4WRHcvOqOYDjMuaLe6ehJowpuI/U0LZ5O6oNWV8txoZp4QnaPbkb/sk/XWN7RN+GMX8ln8jLB XHNhjFcA==; Received: from authenticated user by zero.zsh.org with local id 1lqyFk-000LFT-Mx; Wed, 09 Jun 2021 13:28:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f177.google.com ([209.85.208.177]:46760) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lqyFU-000KxR-1X; Wed, 09 Jun 2021 13:28:00 +0000 Received: by mail-lj1-f177.google.com with SMTP id e11so31645355ljn.13; Wed, 09 Jun 2021 06:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XpuZCzHEx9WQs8oZPz/WY1tJhUXqphxKfmrLHneumqM=; b=aZ4UT78u5ivf4wcACvq4rmEEANjTp4FM+cFjLk3A9IsYJrEMyhw1OVNKORtnIMKcrj wMbgfN3Im7GTY7zF8sB92VOpvEnUT+abytrqtB6bwlEPKDa02tEsgHFdYwa8rcQQKiKm pMZT9hASu8vsbeSiQg86RhPjNp6dWGV/ZUMIfpwvE5ueLKyZhyoAYEgGcPRcwPs58L3m Y7OYcsGjBzzRfm6fx3/qM/w2kIsY4MixgK0KwXFrstZBo9b+9xzDyqZoRVG8IXfdWCfv 3H96WPx+UcqOZrvUQXeIpAV++3eLFIbAZyvFuSZgsYyGAghY+cHtraLwe4wN56VQymVF LIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XpuZCzHEx9WQs8oZPz/WY1tJhUXqphxKfmrLHneumqM=; b=YwpkhAx6vVYb07NZQe7MgB6iX3My/Gx8aVL/PdxeCYF7247Qhq90fpRUawtKE8B635 ZO5NJ21JmC/LG9UHXf485nompa8aPPt1cYj1aInGkc4hOiCF2cMkad2M0jaoVenqtaeV uJhecTNtjs9/VyYw7VB07WnDiwrZWtNMCkfUekP50AMQOVyi+HsRT5hyT8lG5179zK4/ gNkpb0yipAOPBnt0yd1s27pWNx59P8jqHGOX5nTR8KBuc2Vla0mvivwfXgiLIB83wpTY W4UAvRkwyh/yAXUgedYVeGMAuvcwjdXnNxCD861EvU5TuWuAP+1nu1/EW5xDT6YJ0PSF 2k2A== X-Gm-Message-State: AOAM531mT0Vjvz9wkNxFsY7hZcsGHJOpFxHo5RQ/V5SxocOZmrcEHOnU VcI6LtcuvB6v7Nd+JAINWkd79szdJxkfCckd20YEAGp0u0U= X-Google-Smtp-Source: ABdhPJwSqX7JDG9INoGoc1M3rvAlbiI5zKqxOEKuQSh/jh9U6M707ntGtf1vhRexfDdBqY4HYoK8kY81iJdzm4FF3Pk= X-Received: by 2002:a2e:a490:: with SMTP id h16mr11108lji.270.1623245279482; Wed, 09 Jun 2021 06:27:59 -0700 (PDT) MIME-Version: 1.0 References: <8d57e329-337b-4815-8964-efcf10949595@www.fastmail.com> In-Reply-To: From: Marlon Richert Date: Wed, 9 Jun 2021 16:27:23 +0300 Message-ID: Subject: Re: [PATCH] Let 'extra-verbose' completion show alias values To: Bart Schaefer Cc: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 49038 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Jun 8, 2021 at 11:11 PM Bart Schaefer w= rote: > > On Mon, Jun 7, 2021 at 3:29 PM Lawrence Vel=C3=A1zquez w= rote: > > > > 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 progra= ms > valgrind.bin -- a suite of tools for debugging and profiling progra= ms > 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