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 29307 invoked from network); 20 Dec 2020 22:21:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2020 22:21:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608502912; b=vZ6d7BxGBJtO8wT6oeLxO6znwUWKL5a2pPzUtsRyHE9UEwNfzLz+Oz2i0fB9J3Xro6WrOIcXtv d/9lMv6B1+0b72GOO8AZWxZ+7FGs+BeU1LQ7Bf4EvQ54/cQt0CbsDzcOZaMFzezieKQZC0I4DV 1E63czCB5EWZKTRCDwVnfKswViWw/Lsk2UwC0haojBPJhx6slE3CwiVDtoGmXXZxXt9n7adpjC R6PqAswHcJF1tHHb5MaFocWJBTkZI0mlfSdBtgsIuLX7N7ybXNnbbH8HOAQMnSAgmo3HCVYHG+ r9eMSmaUCsvNkEFDifEL2pW6bvhsDsi5u9SL8aPKYH/Bog==; ARC-Authentication-Results: i=1; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608502912; bh=yBr4rZhm0V33H4vv54PcQfOFOp8VjFG9dy/aJP8MsV4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=qfpIOdHhHxtesqsocAY6F2bed8VGCdtryoRDXCTkOVo+bz9yZKyKIjDr92NtDNYrioqsD4wGMR wDgTwf7I+rzHGe5jOVCWyAKz6kC5JGmBYb+Tg6zg3wVi+IteUa0FDrXXF+zfkdnWNAja5qNhV9 +SaNpM7i73IFneGC70qdPCuBtg5i+i789XUl57GMcoP6ZaJtSINdr8oa5OjsEzhKkhsRjvXNq6 G89ivyIYpudvIdI2cVPV4dR3FO+15uFjS/CYrzlmjdWbXus7CWgrCpf9UL/ATyd94F7/WA6D7z L+yP8Fpq6oAYlmvkgE2zfDZ1gM3M+xvcWVRiLnAQLQRthQ==; 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:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lkkjAKwRxEAgoldLfgVFJe8SsSi+Z8vAFFBAwLEZr+I=; b=TExpFd2gkKoGffec/fJk8oUdN5 FCA9jsLkRvsma2RwzX+GSc4PLJETcisMYRfVEx4EjxtQ8zLUhOvnH1WdbITBhiA1p4LyW3hLMAUd0 nD39ca0/kJmkRXBO2xve+ufHWMs60y0t5RW3n2SNtLHrRXVyb23v9H+37WxtNEfGs4hW+Wb5RwirS 3kVqZk1wzKSztfAdv8Ud508Z2YfECO7UNBDGfkkrytjUFDdaFGuqDMmQn4MZgU7jVuvF7gr727w5w oAFI4Telvyw0NEtGI5oizRj1SNmBlp1oLaxM5JTQQlbIlBIt6LgX8z7DXjdvqZ6Z5ApK1DOLYQ9ER opesOdxw==; Received: from authenticated user by zero.zsh.org with local id 1kr75M-000LYV-8R; Sun, 20 Dec 2020 22:21:52 +0000 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 Received: from mail-oi1-f182.google.com ([209.85.167.182]:38003) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kr74y-000LBt-Ki; Sun, 20 Dec 2020 22:21:30 +0000 Received: by mail-oi1-f182.google.com with SMTP id x13so9494803oic.5 for ; Sun, 20 Dec 2020 14:21:28 -0800 (PST) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lkkjAKwRxEAgoldLfgVFJe8SsSi+Z8vAFFBAwLEZr+I=; b=Akd+3pRzdQu8Q9ZhoDQuREX/8cJTXQE9ybeJ60O79IgU8G0dhsEapgaPeBs0Wbw9uY x0+wkquNNNQ3C+a7WukqDGfNd4cuGWNeG7w7h0ULbiKrkdqFNPWRSm8Dw397YXokGSzu 3PyKIyUNFEfZWMw/6Q37oCJcbeI6RTRt7/jmeXMtT4m8xnULNt2zUpjg/1aCeV+SIr/u rSWZO5MnHyuEr8R53fuTyHMoVD1QkZcCVm3rWXv/0smsHmvflXyWQ1gskxiDdHEBn6C3 +O9CMZqKgiYy0oPaNcmbWo02i1srW2JHd4lXa7pD5n+vK/Qo0kgnX3RAFLxlDfnoTj+T LGpQ== X-Gm-Message-State: AOAM532gNT0bIx05vwckxD2rmZfan+QnR+CzKcmMHtWOtJxLn7u9pa8z N3Y6zBIPr/xQdWxez7yQ1Wm/waNj+urUiyJeSt8I77hyS+kP5A== X-Google-Smtp-Source: ABdhPJynNOMviJBQ2xa6kZ3KedKoNfrWRid+o4m2t4iSbFMbK0qj2DgWrxlp1QV2IXPohduqCsE8plFSOiCCfh1hdbU= X-Received: by 2002:a05:6808:8c2:: with SMTP id k2mr1950550oij.132.1608502887314; Sun, 20 Dec 2020 14:21:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 20 Dec 2020 14:21:16 -0800 Message-ID: Subject: Re: How to tweak the format of file-list completion? To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26250 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 Sun, Dec 20, 2020 at 1:41 PM Andy Spiegl 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).