From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to tweak the format of file-list completion?
Date: Sun, 20 Dec 2020 14:21:16 -0800 [thread overview]
Message-ID: <CAH+w=7brk=qgdWhtZOKYdroELG7cGqgLi=q-k4g3yq0bd4=7tA@mail.gmail.com> (raw)
In-Reply-To: <X9+ZzxlCYdBbGww4@spiegl.de>
On Sun, Dec 20, 2020 at 1:41 PM Andy Spiegl <zsh.Andy@spiegl.de> wrote:
>
> 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.
For the nonce you will have to copy Completion/Unix/Type/_list_files
into an earlier slot in your $fpath and edit the format string that is
passed to "zstat" at line 61 or thereabouts (may vary depending on
your version of zsh).
A more complete update would be to permit that format to be assigned
in a zstyle. The question is whether to do it like
zstyle ':completion:*' \
file-list list=20 insert=10 format="%b %e %H:%M"
(in which case a format= with no other values would be equivalent to
also asserting "all") or to add a new token ala
zstyle ':completion:*' \
file-list-format "%b %e %H:%M"
(which has some precedent with "date-format"), or to us some new tag
with the "format" style (though I don't know what tag that would be,
offhand).
next prev parent reply other threads:[~2020-12-20 22:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 18:37 Andy Spiegl
2020-12-20 22:21 ` Bart Schaefer [this message]
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='CAH+w=7brk=qgdWhtZOKYdroELG7cGqgLi=q-k4g3yq0bd4=7tA@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--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).