zsh-users
 help / color / mirror / code / Atom feed
* file-list completion
@ 2022-07-16 15:23 Pier Paolo Grassi
  2022-07-16 23:08 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Pier Paolo Grassi @ 2022-07-16 15:23 UTC (permalink / raw)
  To: Zsh-Users List

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

Hello, I noticed that completion with file-list style shows a maximum of 8
digits for the size, truncating the leftmost ones. Does anyone knows some
way to prevent this, or to customize the style (besides what is already in
the manual) to achieve better data presentation, eg showing human-readable
number format?
thanks!

Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 580 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file-list completion
  2022-07-16 15:23 file-list completion Pier Paolo Grassi
@ 2022-07-16 23:08 ` Bart Schaefer
  2022-07-16 23:22   ` Pier Paolo Grassi
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2022-07-16 23:08 UTC (permalink / raw)
  To: Pier Paolo Grassi; +Cc: Zsh-Users List

On Sat, Jul 16, 2022 at 8:24 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> Hello, I noticed that completion with file-list style shows a maximum of 8 digits for the size, truncating the leftmost ones. Does anyone knows some way to prevent this, or to customize the style (besides what is already in the manual) to achieve better data presentation, eg showing human-readable number format?

Discussed in https://zsh.org/users/26250 and follow-ups.

Short answer, you can override a function to alter the formatting, but
you can't get human-readable sizes (unless you massage them yourself,
I guess).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file-list completion
  2022-07-16 23:08 ` Bart Schaefer
@ 2022-07-16 23:22   ` Pier Paolo Grassi
  0 siblings, 0 replies; 3+ messages in thread
From: Pier Paolo Grassi @ 2022-07-16 23:22 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh-Users List

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

Thanks Bart, I will investigate from there

Il giorno dom 17 lug 2022 alle 01:09 Bart Schaefer <
schaefer@brasslantern.com> ha scritto:

> On Sat, Jul 16, 2022 at 8:24 AM Pier Paolo Grassi <pierpaolog@gmail.com>
> wrote:
> >
> > Hello, I noticed that completion with file-list style shows a maximum of
> 8 digits for the size, truncating the leftmost ones. Does anyone knows some
> way to prevent this, or to customize the style (besides what is already in
> the manual) to achieve better data presentation, eg showing human-readable
> number format?
>
> Discussed in https://zsh.org/users/26250 and follow-ups.
>
> Short answer, you can override a function to alter the formatting, but
> you can't get human-readable sizes (unless you massage them yourself,
> I guess).
>
-- 
Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 1318 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-16 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 15:23 file-list completion Pier Paolo Grassi
2022-07-16 23:08 ` Bart Schaefer
2022-07-16 23:22   ` Pier Paolo Grassi

Code repositories for project(s) associated with this 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).