zsh-users
 help / color / mirror / code / Atom feed
From: Tomasz Pala <gotar@polanet.pl>
To: zsh-users@zsh.org
Subject: completion: lookup argument using descriptions
Date: Thu, 10 Jun 2021 11:30:07 +0200	[thread overview]
Message-ID: <20210610093007.GA6653@polanet.pl> (raw)

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 <gotar@pld-linux.org>


             reply	other threads:[~2021-06-10  9:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  9:30 Tomasz Pala [this message]
2021-06-10  9:45 ` Roman Perepelitsa
2021-06-10 10:09   ` Mikael Magnusson
2021-06-13 10:06     ` Tomasz Pala
2021-06-13 10:43       ` Roman Perepelitsa
2021-06-16 10:04         ` Tomasz Pala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610093007.GA6653@polanet.pl \
    --to=gotar@polanet.pl \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).