From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8486 invoked from network); 20 Dec 2020 23:51:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2020 23:51:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608508284; b=X0CVWXIrG+oYCiWXsd/K4OkuMKkXTt/uQJ7h4rbKyorCQYSPqJ+FKVUn12jDy2BzxuEgUcViPJ j2VJOXDImxwxgmxQ9Ickp8VwkgM1kbQjrQ+AoxgR+0DSmK63fj4tMNcNkwOFEiwPvEAj9h9+1Z gnjooV0evbFkNb2X78oRJzSjomIXy6cMwZ6hpGiCGS9MjTHT6Mxy7BGnBiY7V12Yty953lLbju KJqwSjN6qt2wnG/CaQdCw4Rpftv81fZOrP1T7PqfFzfixWLK7l0AMpDDNy+lfbrNF1OzZK7Kjp TIdYd9/qOqv+94N+veBwpxOXXRHpaAEqP4dQyFtKJXnkZA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (lobo.spiegl.de) smtp.remote-ip=164.177.170.82; dmarc=none header.from=spiegl.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608508284; bh=8oFHsgqmRqCrlx4tlE31fCcqCEb72PTdzKWDGhMT3+o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature; b=E4E7HTcXtLjUrI8IIkigbdg0WlqHPQCPDm7ReIDTUiuQSoMfHl96EcXamX04JKtH7bAkO/DMsD eMgB7GqPdec1I2Sy/nBI8WqtyBL7uqNX3PIgGWwZ7I8FyiDH7512fVFeHmzvzTBG9Dpkf/Pkga cVn6PUxlEAgdGsSyelkEpUzytcR9eDYJAw8y2xcb+VrevUpys3ny9QhTHSWVsAnHkwJfbGnugN 3/blG3z5L2Vu2/BaXHy26K/iwgiwrPVfsnpxxSxjYUcnEHV7cJLOY5534OXkvd66h8RmzyjpDV hiozw2v1kpKBLrolChHoH3vuMX0uHnZR+An4SMrajU2L8A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=yvU1Ll/uiDNcwH+oudW2P4u9333eOUIVzJLgymk6MQI=; b=mY+YPGvDcPITCUjduSlMDJHQ5Y g0rHyafmknYKiUh2JoOoGy1fokq3Tob6OBK2Mif9odsDVdZnuQSka+flW03sSgrI8plIXJKwhVfdA D2y945SlSmZTihzKAKnJMSi2AWwF0a51dyCsYvO6NUs3yXXLqnJvyTdGpqWbm9fDOn/zqY7jBVv5S fmsV6mgERTzyoBWepMPO4hOX6P8WNZk8goZeMSVVLUIymKj2HimBHusUhJCtrLilosYF4cBUbJ5BG 7rVxy0ZD+4hGFUw5dqx/guFzxKMTreRURmfrlrMQ3Jm+t4yfEErA2k1Q6pHdlWSpDPZF62tH5u+f5 TgvG0tGw==; Received: from authenticated user by zero.zsh.org with local id 1kr8U0-000Ok8-3s; Sun, 20 Dec 2020 23:51:24 +0000 Authentication-Results: zsh.org; iprev=pass (lobo.spiegl.de) smtp.remote-ip=164.177.170.82; dmarc=none header.from=spiegl.de; arc=none Received: from lobo.spiegl.de ([164.177.170.82]:38326 helo=mail.spiegl.de) by zero.zsh.org with esmtp id 1kr8GV-000O4O-PO; Sun, 20 Dec 2020 23:37:29 +0000 Received: from condor.int.spiegl.de (p5796ae48.dip0.t-ipconnect.de [87.150.174.72]) (Authenticated sender: webmaster@spiegl.de) by mail.spiegl.de (Postfix) with ESMTPA id 65998251EA00 for ; Mon, 21 Dec 2020 00:37:27 +0100 (CET) Received: by condor.int.spiegl.de (Postfix, from userid 1000) id 12B22CC106D; Mon, 21 Dec 2020 00:37:27 +0100 (CET) Date: Mon, 21 Dec 2020 00:37:27 +0100 From: Andy Spiegl To: zsh-users@zsh.org Subject: Re: How to tweak the format of file-list completion? Message-ID: Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-gpg-key: ID C2CB30F0, available on friendly keyservers near you X-gpg-fingerprint: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII PDF Open/Free Formats - NO proprietory (e.g. Microsoft) files, please X-how-to-quote: http://quoting.is-easy.de/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ X-angstklauseln: http://www.heise.de/artikel-archiv/ct/2014/08/136_Angstklauseln Authentication-Results: mail.spiegl.de; auth=pass smtp.auth=webmaster@spiegl.de smtp.mailfrom=zsh.Andy@spiegl.de X-Spamd-Result: default: False [1.00 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM(-0.00)[-0.797,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:3320, ipnet:87.128.0.0/10, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Validation-by: vq@larryv.me X-Seq: 26252 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 2020-12-20, 14:21, Bart Schaefer wrote: > 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" Found it, thanks! I changed these two statements: zstat -s -H stat -F "%b %e %H:%M" - "$dir$f" >/dev/null 2>&1 listfiles+=("$stat[mode] ${(l:3:)stat[nlink]} ${(r:8:)stat[uid]} ${(r:8:)stat[gid]} ${(l:8:)stat[size]} $stat[mtime] $f") to zstat -s -H stat -F "%Y-%m-%d %H:%M" - "$dir$f" >/dev/null 2>&1 listfiles+=("$stat[mode] ${(r:8:)stat[uid]} ${(r:8:)stat[gid]} ${(l:10:)stat[size]} $stat[mtime] $f") A lot better now! Does zstat have an option to output the file size in "human readable" format, by any chance? Like "ls -h". > A more complete update would be to permit that format to be assigned > in a zstyle. The question is whether to do it like Veryl cool! I'd be happy with any of these options. Thanks! Andy -- Every person takes the limits of their own field of vision for the limits of the world. (Arthur Schopenhauer)