Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to tweak the format of file-list completion?
- X-seq: zsh-users 26250
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: How to tweak the format of file-list completion?
- Date: Sun, 20 Dec 2020 14:21:16 -0800
- Archived-at: <https://zsh.org/users/26250>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/CAH%2Bw%3D7brk%3DqgdWhtZOKYdroELG7cGqgLi%3Dq-k4g3yq0bd4%3D7tA%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lkkjAKwRxEAgoldLfgVFJe8SsSi+Z8vAFFBAwLEZr+I=; b=Gjp0bfg6LVrobaOIQxZ2vqM8ROrzs4Hc6pCgszBlak3gtf5ixeF7T90wjRSB34/iRD GKicCrV4Rlkn+Bn5nlZhGiV/nauCpqiiy+a1caT44V3huCz5kFvfE1SSV7jbXnzFQD+m drIBMHCUA4VDIzcth0zl+C3aJTKgZ3cxln+2KMzA1RdVGeovr/dQ7yWEqHg+rDQ5KR0H FajYellCP0ALaTfKEYvlv/cZJw3X2iIByYDZSvRVWHQRsWsMRxR1FEg8S28GSBpaBiNO wAViSn9f4jyS045UmUHw9C9/9Iy3owypmY4fOyrYban4z1MyRWCe8mfhc2PvPh1YHbKc vQYQ==
- In-reply-to: <X9+ZzxlCYdBbGww4@spiegl.de>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <X9+ZzxlCYdBbGww4@spiegl.de>
- Sender: zsh-users-request@xxxxxxx
On Sun, Dec 20, 2020 at 1:41 PM Andy Spiegl <zsh.Andy@xxxxxxxxx> 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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author