help / color / mirror / code / Atom feed
* How to delete spaces or set my separator between words when I using complete function on ZSH
@ 2022-09-22  5:50 yuhang zheng
  0 siblings, 0 replies; only message in thread
From: yuhang zheng @ 2022-09-22  5:50 UTC (permalink / raw)
  To: zsh-workers

[-- 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
    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

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-22  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22  5:50 How to delete spaces or set my separator between words when I using complete function on ZSH yuhang zheng

Code repositories for project(s) associated with this public inbox


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).