zsh-workers
 help / color / mirror / code / Atom feed
* How to print formatted like when showing completion entries?
@ 2020-06-25 17:43 Marc Cornellà
  0 siblings, 0 replies; only message in thread
From: Marc Cornellà @ 2020-06-25 17:43 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

I'm trying to print a bunch of options to a command, and I want to show it
like triggering a completion function would do,
with the same spacing and distribution across the terminal window. I've
tried using *fmt* but I'm not satisfied with the result.

How does Zsh print the completion entries passed to *compadd*? I mean,
where can I find the logic to compute the number
of columns, divide the entries into columns and add as much separation as
needed? Much better if there is actually a Zsh
command to do that automatically.

Thanks,
Marc

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

only message in thread, other threads:[~2020-06-25 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25 17:43 How to print formatted like when showing completion entries? Marc Cornellà

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