help / color / mirror / 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.


^ 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à


This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git