zsh-users
 help / color / mirror / code / Atom feed
From: Celeste Liu <coelacanthushex@gmail.com>
To: zsh-users@zsh.org
Subject: How to write completion function for arguments like unix:/path/to/socket
Date: Sun, 28 Jan 2024 20:25:35 +0800	[thread overview]
Message-ID: <607d8cca-e4b5-4a0a-80c5-00d3ff880b4f@gmail.com> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 330 bytes --]

Hi,

Recently I write zsh completion file for a serial port tool named tio. It has 
a feature to redirect I/O to a socket, so there is a argument --socket which 
accepts something like unix:/path/to/socket or inet:1234. But I don't know how 
to write this function. Could someone help me? Thanks.

Best regards
Celeste Liu

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 12137 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

             reply	other threads:[~2024-01-28 12:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-28 12:25 Celeste Liu [this message]
2024-01-28 14:10 ` Mikael Magnusson
2024-01-28 14:22   ` Celeste Liu

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=607d8cca-e4b5-4a0a-80c5-00d3ff880b4f@gmail.com \
    --to=coelacanthushex@gmail.com \
    --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).