zsh-workers
 help / color / mirror / code / Atom feed
From: yuhang zheng <yu.hang.zheng0127@gmail.com>
To: zsh-workers@zsh.org
Subject: How to delete spaces or set my separator between words when I using complete function on ZSH
Date: Thu, 22 Sep 2022 13:50:22 +0800	[thread overview]
Message-ID: <CAKJjryH2dqZ41EnhYk3sSVtGe79iCvJ7-haW=Yu2ept-ZR8KhQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1099 bytes --]

Dear Sir,
   Good morning, sir.  I feel very sorry to disturb your work. And we met a
problem on ZSH completion that we can't found an solution on official
document of ZSH (A User's Guide to the Z-Shell (Chapter 6: Completion, old
and new)).
    We are doing an open-sourced tool which can use on different shell, and
we get stuck on ZSH completion now. On BASH, we can use a command ' compopt
-o nospace ' to offset spaces when we are using completion. Same on ZSH, we
want to delete spaces between words when we are using '_describe' function
to complete.  Here is our a testcase(img_1 on attachment). Here is we want
to achieve(img_2 on attachment). Could you tell us how can I achieve it on
ZSH?
    By the way, ' _argument function ' also can't delete spaces between two
words. But if an option has an equal sign, '_argument function' can delete
space (img_3,img_4,img_5 on attachment), so I think that delete spaces when
I using '_describe' complete function can be achieved on ZSH, same as BASH.
   Thank you for spending time on us, Have a nice day~


Your Sincerely
Yuhang Zheng
22-09-2022

[-- Attachment #1.2: Type: text/html, Size: 2533 bytes --]

[-- Attachment #2: image_4.png --]
[-- Type: image/png, Size: 7905 bytes --]

[-- Attachment #3: img_2.png --]
[-- Type: image/png, Size: 18526 bytes --]

[-- Attachment #4: img_1.png --]
[-- Type: image/png, Size: 5082 bytes --]

[-- Attachment #5: image_3.png --]
[-- Type: image/png, Size: 5826 bytes --]

[-- Attachment #6: image_5.png --]
[-- Type: image/png, Size: 4385 bytes --]

                 reply	other threads:[~2022-09-22  5:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAKJjryH2dqZ41EnhYk3sSVtGe79iCvJ7-haW=Yu2ept-ZR8KhQ@mail.gmail.com' \
    --to=yu.hang.zheng0127@gmail.com \
    --cc=zsh-workers@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).