Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to print formatted like when showing completion entries?
- X-seq: zsh-workers 46114
- From: Marc Cornellà <marc.cornella@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: How to print formatted like when showing completion entries?
- Date: Thu, 25 Jun 2020 19:43:03 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9eoRZ2Az/I4VqaXMRvRLzt0Ci3L5LSkEEArGdjNp6/0=; b=eWtJA1auPNuEMip9TOztIxOu4GyJSfVYlsFkwoEot71FuwjoPNb2amuKFHls5qQ5ACLhVxt51M5+z58R9Wddoe5q+7UUGZr92pn4GSeyZwvVS6HZD0ZcCTxgQ2y0iCTLXP4vYSkHgVocvr+Bl3l2C4EEv/zupYA20dIy99TUpKvyjFNbK3yrso33mM7D3qv1pDnYNUtEsXd4SmTVmIR0NnOmLr4/C9+sgJS/wRTRa5bHTXzRjz0d3/nrcTGFfT4DOsY1JHYHW78Szi11lB7Z+fktE1o3vhRKnNBNYEdTW89532OJ7aioEHO4zfIBK0y0bYD0wXz9q00zBHdRRoyQ0g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=baB/giOtKi99m4764oCifQEWYiC8nN53fXVu4I0bGUJiH7wnYy6/kJSCfkovPU3mgzvdn7FGWqBaS5bqowFpksre6D47WzjZh4bXF4kS8X6pPEZGDEXumkA4bizNOlJaeiPqBUp9AKBnGS7DtFT7GHwKsK4s+IjOWu6KPljyfJBSjLwRwdDboEBODAM7VCQr7YQSns+Z8JgRaEOs5r5XRe2cOLd/joPVGlvTF0/Hoq0nxGP1HG3Xg5F9JH5FOJRok5aFecIb1UUvOM2YcuOtHR++UuaD+3DWmMhw86aPUL5gqb06hx3bNIKjHUxlGq3gyquPoBhhc3yM267rAHvmtQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: zsh-workers@xxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author