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 4626 invoked from network); 17 Oct 2020 22:16:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2020 22:16:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1602972964; b=OeWQvBJsIBzXXN+Fh4tVx9aWifcjwoSFYygX2+arAmPNnQ3XwDX+VM7BT/AuyVs+Im9v6aLOjP go1cD2htST64zc+n4p5ULGVRca/ApwT7p4fcajdco2Dfc7nBEA/3u5gsjEhjtVjrsY6gvtzH80 sgMCBbeKQYgHhgAejeO3ufzBnFKEMNDWmLJn03ajpVXroGc48gAvShblQWVs3bKiubStUsSBvS 0aJ95hRlLvoDtZMChB+xx0aU9dhbjZzQVU8FL507hlfI/Gd7MrFGJAkQsVs36IE/JwBGMVemGx lTG8piQSuTLuawXZmwSxr7dSnnRtwzqhaTQpzCuBiR5kQg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; 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=1602972964; bh=TPeP37AJE4fW6QhlqsXA8NDLQaMjyb4dv2FvwE8m9k4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=drZzeOLSYB9cLBOwxjGpmkAMLfsEwOm6DWeHrMqEu+C4LXmI0/MVGwnfr6EH0G3KeJgVkKRGhl 4mMX0XQODaFggm8Bxb1vKFDeBDVMcKoTcYpKrFPL7cCM9KoFbjBrrCEXaKBI/Ughur1IqC3N8f DgmXbBzJWP2mmBQN6t20SYR2FKWopaNGotJMPilCERSmaQumVkLtN8+jNllRcDgDrS6+TiiJPe 3buX3LK6E0VviuuBq4KuTerkRCdmImvCJoBZ3Gqso+78btbfmmqWz/xJx9IBTRHEOBvAGRNhlO p5gVN7Bj3n/dRpy7n6X18d0gIn91Olj0IWK6DbTl9pv5qQ==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BkVLbikO+n968u0mRTv3Qslcqd/QvsxDdkV2nsOh7mo=; b=uBp6mI54J7u0inWA5aOcl/SEW8 hGtYy5NS9k+mYTbqVnfj2Ip+gF+Y7FUoq0RSKl/hhP9++4huzJ9QZdr/kfWWQbfW+b0JYT3Le/WlE y/RT8B0xjcwniVpBHWIbOsSEv6iGyb0fv6WoWOweCMjbMG54dDkKYaMvWR2+jjBSvruAgUkMazKOz 9cRDc8E2ZVXLcKuKBrL1MUoDvgYShWb7T7yU520byc60AoOOnDtWZPGBu4mzXhkWGkxZ8vLiizNxA B01lcThjcCMYL9Dpt1YmE2gryZFz+CX6Z9e9DCQTTsiGWQYPRFTJkRUp/hW5DdTPQkIkbwn3n6Oec v7YcNszw==; Received: from authenticated user by zero.zsh.org with local id 1kTuUW-000NuR-6c; Sat, 17 Oct 2020 22:15:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; 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-ot1-f53.google.com ([209.85.210.53]:44230) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kTuU2-000NXd-Po; Sat, 17 Oct 2020 22:15:27 +0000 Received: by mail-ot1-f53.google.com with SMTP id e20so6400491otj.11 for ; Sat, 17 Oct 2020 15:15:26 -0700 (PDT) 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 :cc; bh=BkVLbikO+n968u0mRTv3Qslcqd/QvsxDdkV2nsOh7mo=; b=bRW4wtAa/T+/sDQm5zuNmnPpBvEcmQW6VK6xETYtnyf+V4dRYt4WCIBCm1UuAy/za5 Xyg6SJkxp/1OFTlVT1ntFOR3NAPER4jNSixVGuj547aaFLGjBoCZnuS3mGJpQbvuIHCx K+uStlTA8BuW11c1u3rTm4fsEn58qz6ibjiJ80Trj8cVOJ6AYVtVs0/7mzAIwQ46I19n tP5DED/RXutSLRToNHuVjUZ2jI5s2Jo7DdwxYTdwYwq6KNiaE4/H8pL5gIJ08C3u8sXk gn79c5MPSFIZ47GfhFf4rvqj3xR7isIOQDhodJJcpdIzP8u0VwT9G7HRQmDjL1WqkSfj 4qRQ== 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:cc; bh=BkVLbikO+n968u0mRTv3Qslcqd/QvsxDdkV2nsOh7mo=; b=MUv7KMs23C0nau/tvbQUZT2wR3PbeAcnCz4oKp3I5/SmE8XQVswbkFFTsqoHLhqhTL UcF+ZxdscHhvlztKzT2+mbuJArC5mZYV3nd5PC4NIlKXFRtjWSmYWj4AAHcMW5e600ba 7xV2Ssdg4GGGCvQm9rhvSTR9M6fo9ORBwA3iSefkWthMARbAi7N7HLVEzd03IF/ENz2y QuYHXhCMCG5hXF5WNzJbDemhgCHE7vtOPUs3ZJUaLHiKdsl/vJ/eWnIhbKoW0RonmOcE F+BYv7mcTyEF1P3fnsOdbleT7bbN7oCCIFAJjLDFpYDUoz3HXHLyEIBxxvG+N6wkYGLO mB0Q== X-Gm-Message-State: AOAM532wK0podq7ozUT+kIztYYputgCwHbO4pHwkKvZgBXgDepsW6weK SG/F4JUnioZkJ08WXX7SIZQmETAo0WKiZeM5tkUDyw== X-Google-Smtp-Source: ABdhPJw6CmaFRTswkTf7cXvkik5e7nyZYNpS0Q7u3JrbZ2+mvXV+cUYp1M9VrsSEhiDxn4eRpIlBVpL1005zoQO5BlI= X-Received: by 2002:a9d:734f:: with SMTP id l15mr7847592otk.260.1602972925502; Sat, 17 Oct 2020 15:15:25 -0700 (PDT) MIME-Version: 1.0 References: <51151-1602923600.276703@fJFe.e1_b.HfoP> In-Reply-To: From: Bart Schaefer Date: Sat, 17 Oct 2020 15:15:14 -0700 Message-ID: Subject: Re: git diff HEAD - only show modified files in completion To: Ahmad Ismail Cc: Oliver Kiddle , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26111 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 Sat, Oct 17, 2020 at 8:24 AM Bart Schaefer wrote: > > I was thinking there should be some way to implement this with a > zstyle by changing the program invoked by _call_program Finally had a chance to poke at this a bit more ... On Sat, Oct 17, 2020 at 9:25 AM Ahmad Ismail wrote: > > I have asked this question on reddit afterwards. In your post there, you said: > I also tried zstyle :completion::complete:git-difftool:argument-rest:' command 'git ls-files -m'. Apparently it is doing nothing. So very close. zstyle ':completion::complete:git-diff*:argument-rest:tree-files' command 'git ls-files -m' One question is why ^Xh (list-tags) shows the "files" tag for that context but not the "tree-files" tag. If you invoke completion immediately after "git diff " (instead of after "git diff HEAD ") then the context is "changed-in-working-tree-files" and THAT gets shown correctly by ^Xh.