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 9302 invoked from network); 10 Jun 2021 09:31:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Jun 2021 09:31:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623317467; b=iWhaHUxcKdJ7FXRBzl5ju/UghutI5wBDtnMvf/XhudeDtLeynyv2JPa+sCht63axGBu2ItbTIq dR+erZE6+wQ+rekXf+WgzU0T9qg8pl0eIR6Gg2cVe+jyjFnKzKA9HrtuFgZU1OYuRmoo/Kfx7G yafakeNKrZlchkI/MWStdYbvyBC1xW18iB6s2asBBURPdLVV5gzTpt4mzGzgsuIFSQffuidd0Q XOlDUX2DBGpjKFcjGVa0KwYB8C+ZQejMzAyVNTBKwUE7r/RnKsWbdXRe9ydwYQza9XrMXQkMRx bRDX0mKR6s9LnzRQgwI7Tukw6BothRjLaNpwKMJVR8IirQ==; 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=1623317467; bh=sKiJqHTGijOZanxZUY7NH1nebJZgfmDGQLtHKyn5V4k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature; b=jBMf2zWDj7FR+27tZ6K0Kp2Gk7BpaUjF8MPIVyiVkP4TKyVk9JhLtJYgzVi6DZ8GYKR9YSASSR 4O/t4Y20biYlHdAMKb+TLqmuSlfmnPnjWh3rIExiLA0YPwVBTwXeqDERmusTdyOl5N7GSsbZFR AUwdP64AvTbmkHwHvHPDzcTfCCq3nqlZy6V79h5oVGSp+nE3tgyyHn+PFM0ygw5UuJ/nhRhO4I FNoSp8WzLgdNss3Fp6d1BpwmeYcA4fKm5aLRACqfwka7QFNWC2edDfws6b6jnawMW0L47M+vC6 NtuHSEs+AsaQaSxH9jUJzt42uW+vZZd07HLrUI5g5ZCDLQ==; 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-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=0VFZ8PJhGtUC7aadw3LWSd7W0VLicSoIoGpN1eikPNM=; b=qIdfrOqJTBkSaZsMfMjIvOJ9To W6d/rCl/owJppCskuaxOIKMHhobtVk9am/mRPpBagRN8Sfey31Cs3m01UMqgTPZvmZxxVP8q9z5y9 7A/EhTGEB+nwOhOCl0Ul0nQVGkbekAlgTDgVUpjwb7cRnay5BayJNleFjIH3ECUm69VvMFuEA5l6z 9B8xEdL2ViU279QllG5Y53HKXBPV0AWaVTO4glQjioJb5MGPwOV/Y7me16REc2zuqIaDomPRqxpSP A0QpkpGqVShvGVLr41mvSLAiq9mxxNltmZZN5jNnnxqDJxgYBZndTa6wTjQsQ1de81K6EOuKwajj6 N/I2cWtw==; Received: from authenticated user by zero.zsh.org with local id 1lrH1m-00005a-Ve; Thu, 10 Jun 2021 09:31:07 +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]:41805) by zero.zsh.org with esmtps (TLS1:DHE-RSA-AES256-SHA:256) id 1lrH0q-000PMp-GG; Thu, 10 Jun 2021 09:30:09 +0000 Date: Thu, 10 Jun 2021 11:30:07 +0200 From: Tomasz Pala To: zsh-users@zsh.org Subject: completion: lookup argument using descriptions Message-ID: <20210610093007.GA6653@polanet.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Seq: 26770 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: Hello, sometimes I find myself looking for appropriate option by reading down all the descriptions of the arguments before going straight to the documentation to simply /search for some phrase. I wonder: would that be possible directly from zle? E.g. let me do the flood ping (-f): $ ping -[tab] option -4 -- use IPv4 only -6 -- use IPv6 only -A -- adaptive -B -- don't allow ping to change source address -D -- print timestamp before each line -F -- allocate and set 20-bit flow label -I -- specify source interface -L -- disable loopback of multicast packets -M -- specify path MTU discovery strategy -N -- send ICMPv6 node information queries instead of echo request -O -- report outstanding ICMP ECHO reply before sending next packet -Q -- set Quality of Service-related bits in ICMP datagrams -R -- record route -S -- set socket sndbuf -T -- set special IP timestamp options -U -- print full user-to-user latency -V -- display version information -W -- specify time to wait for a response -a -- audible bell for each packet -b -- allow pinging a broadcast address -c -- specify number of packets to send -d -- set SO_DEBUG on the socket -f -- flood ping <- here it is -h -- show usage information -i -- specify delay between packets -l -- send specified number of initial packets as fast as possible -m -- specify mark to tag outgoing packets -n -- show network addresses as numbers -p -- specify pad bytes to fill sent packet with -q -- quiet -r -- bypass normal routing tables -s -- specify packet size -t -- set IP Time to Live for outgoing packets -v -- verbose output -w -- specify timeout after which ping exits Is there any direct mechanism I could use to search for "flood" in the right part of the completion? Other than ctrl+a [ / in screen? regards, -- Tomasz Pala