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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10169 invoked from network); 16 Jun 2021 10:05:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Jun 2021 10:05:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623837912; b=d0sl4larMGfAN2EzWbWy5r8nsCQ1w+Es9DNq7RXRMnni9BszYTL7WDyD1MFQwUICiyJy9WzdsS ZMFG1bPAYfBu/zPBADIVI9lLwiOCzdqSopr+D9SYPGkP+j5Df+pTPm9krvSl5Hor/zG7gqoJNq Jfdgl5GXPoKLVqTT62AXFMm9mfFWKFnVow9bJ3smfbl4p7Z+vAy7a/78o80nnLaT9ZGdvhwfQP H1IGrIaDZLF3+El4EuDYOEbk0zeHBg3OZTMa60i44GVSuPspZoUKEAaY7ngET7r32QcTfNOhgu yyGV6NhXlI31/jtTTOddbAfzoWFtg3w9/d2OyTsYpZKroA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (pepin.polanet.pl) smtp.remote-ip=193.34.52.2; dmarc=none header.from=polanet.pl; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623837912; bh=TVb4z75uCJpUxoI4YowgSfdi7N8ko5zAfwqT6NP/PBE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature; b=avlqJwQXNsQuRMbecJz57L32IFEQJwH+rydHIfKBTNJ6CSL7KX+SLGmV2yVSx+8hkaAF6SGARc WxCSazEaMv5rUxzIGU7bW2NdUg4+rNyi2ALKuXPszUeC0hfqHtgI5RrgeQkXvqipN6c8eRo90K UxsAJun1mwD5+Qg4tJIH9C2Msmv4f/zs1eM23KitAvPuep+s4nq3Rpj9YGOAya9cWu54sg85az pgp7CC0NOkJK1cSk+mGKwtEvN0WLxKB4YdUvHCHtmhapIm0jC+KcuXD0anF4phVVWuHdCIXKNx 5uClK37S9wOHIJJ/Ks5G6CN//RhE4T0ucEsa/YcVLXru2w==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=fe+/DsG5NRqP9URUKm7W9V0SfKKNLNzOcwfhjHI7kKk=; b=TZuWi0ZrRqqD3CHCj2dsQjlVm1 czEI7tzsHwPuwkhKR37XASG+2Gs6r5q0w43A4XjKW12vhDPO19ZZpy0C/4a1i/hh9A8EZg02CgLlH GPL6egXTvqw7TT34BSW38KEBn+J38Ghlcti8jUnFM1evvHcW5vi37y/9sxGl8r8ZugWu8/1xfDvo3 zKs0sE3sbwz1R/S/gAuCOlOPIuGAwyvfvDxyS2a7nnuWVAbffdGMsjENaRRyNy94ASTpw9j0vYr04 CBhBe3RhD2blWg7Zs2bvdxVyiSMFCw9tJZOTYmxyKm6wR9GxE/I8Ae9R3atb5iTJTQEDBLzsvE+SI LDw/k17Q==; Received: from authenticated user by zero.zsh.org with local id 1ltSQ1-000Gfv-IE; Wed, 16 Jun 2021 10:05:09 +0000 Authentication-Results: zsh.org; iprev=pass (pepin.polanet.pl) smtp.remote-ip=193.34.52.2; dmarc=none header.from=polanet.pl; arc=none Received: from pepin.polanet.pl ([193.34.52.2]:57455) by zero.zsh.org with esmtps (TLS1:DHE-RSA-AES256-SHA:256) id 1ltSPG-000Fwm-Ix; Wed, 16 Jun 2021 10:04:23 +0000 Date: Wed, 16 Jun 2021 12:04:21 +0200 From: Tomasz Pala To: Roman Perepelitsa Cc: Mikael Magnusson , Zsh Users Subject: Re: completion: lookup argument using descriptions Message-ID: <20210616100421.GA11541@polanet.pl> References: <20210610093007.GA6653@polanet.pl> <20210613100602.GA27466@polanet.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Seq: 26775 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sun, Jun 13, 2021 at 12:43:46 +0200, Roman Perepelitsa wrote: >> How do you know about the 'search' option? > > I don't remember how I discovered it. Now I just know it exists. There's more... zstyle ':completion:*' menu select=1 interactive The last one is really interesting, although I experience the same (1) problem as described and presented here: https://www.reddit.com/r/zsh/comments/8ur9rl/space_in_interactive_menu_completion/ https://asciinema.org/a/189304 and (2) blocks tab from going into menu selection (one have to use arrows), (3) doesn't start again after using arrows, so I won't use this. > For completeness sake, it's also possible (albeit not easy) to display > zsh completions using an external command. For example, in my zsh > setup completions are displayed with fzf. Here's how it looks: > https://asciinema.org/a/419996. Thanks a lot for new ideas:) It took me another 2 days to review fzf-related projects and I've ended up with: bindkey -M emacs '^f' fzf_completion (from fzf-tab-completion) bindkey -M emacs '^R' fzf-history-widget (fzf/shell/key-bindings.zsh) These 2 seems reasonable and working well when called on purpose: - fzf_completion to search for descriptions of "-- described" options, - fzf-history-widget for convenience. Other fzf completions seem disruptive for me and break my CLI flow, making the work less smooth and effectively slower than pure zsh. -- Tomasz Pala