zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: How to tweak the format of file-list completion?
Date: Sun, 20 Dec 2020 19:37:03 +0100	[thread overview]
Message-ID: <X9+ZzxlCYdBbGww4@spiegl.de> (raw)

Hi zsh fans,

I really like the long format in menu selection/completion and init it like this:
 zstyle ':completion:*' file-list list=20 insert=10

But I'm unhappy with the format of the completion info.
The file size is trimmed and the YEAR of the timestamp is missing.

Here is an example:

$ ls -l Dampf<TAB>
Completing files
-rw-rw-r--   1 andy      users     1181153 Mär 16 18:25 Dampfnudelblues.gif
-rw-rw-r--   1 andy      users    08272063 Dez 14 13:46 Dampfnudelblues.mp4
-rw-rw-r--   1 andy      users          32 Apr 24 22:08 Dampfnudelblues.STATE
-rw-rw-r--   1 andy      users        1354 Aug  3 15:17 Dampfnudelblues.txt

I'd rather see something like the real result of the ls command:

-rw-rw-r-- 1 andy users    1181153 2017-03-16 18:25:03 Dampfnudelblues.gif
-rw-rw-r-- 1 andy users 4308272063 2020-12-14 13:46:18 Dampfnudelblues.mp4
-rw-rw-r-- 1 andy users         32 2017-04-24 22:08:18 Dampfnudelblues.STATE
-rw-rw-r-- 1 andy users       1354 2016-08-03 15:17:59 Dampfnudelblues.txt

Is there a way to tweak these completions?
I haven't found the right parts in the zsh manual.

Thanks and Merry Christmas!
 Andy


-- 
 If your parents never had children, chances are you won't, either.
   (Dick Cavett)


             reply	other threads:[~2020-12-20 21:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-20 18:37 Andy Spiegl [this message]
2020-12-20 22:21 ` Bart Schaefer
2020-12-20 23:37   ` Andy Spiegl
2020-12-28 22:58   ` Andy Spiegl
2020-12-30 22:14     ` Bart Schaefer
2021-01-02 23:01       ` Andy Spiegl
2021-01-02 23:16         ` Lawrence Velázquez
2021-01-02 23:23           ` Andy Spiegl
2021-01-03  0:11             ` Bart Schaefer
2021-01-03 18:06               ` Andy Spiegl
2021-01-04  5:40                 ` [OT] " Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X9+ZzxlCYdBbGww4@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).