zsh-users
 help / color / mirror / code / Atom feed
From: Ahmad Ismail <ismail783@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Oliver Kiddle <opk@zsh.org>, Zsh Users <zsh-users@zsh.org>
Subject: Re: git diff HEAD - only show modified files in completion
Date: Sat, 17 Oct 2020 22:25:09 +0600	[thread overview]
Message-ID: <CAHAhJwL5F_Z5X7XacV-hN=GwNJ1iasZmGJZKfX6rLcF_9nXFww@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7brPKzeh_KrpL=LZpojttrdRz7DkqLcfHdauqnpQq5sTA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

I have asked this question on reddit afterwards.
https://www.reddit.com/r/zsh/comments/jcju5h/extend_git_completion_function/

I got a solution from there. However, I am always looking for betterment.

*Thanks and Best Regards,Ahmad Ismail*


On Sat, Oct 17, 2020 at 9:24 PM Bart Schaefer <schaefer@brasslantern.com>
wrote:

> On Sat, Oct 17, 2020 at 1:33 AM Oliver Kiddle <opk@zsh.org> wrote:
> >
> > In this case, it's probably easier to tweak the original _git-diff
> > function than to modify it from a wrapper.
>
> I was thinking there should be some way to implement this with a
> zstyle by changing the program invoked by _call_program for the
> "files" style, but I didn't have time to work out the incantation for
> doing that in the nested subcommand context.
>

[-- Attachment #2: Type: text/html, Size: 2055 bytes --]

  reply	other threads:[~2020-10-17 16:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 22:48 Ahmad Ismail
2020-10-16 22:16 ` Ahmad Ismail
2020-10-17  8:33   ` Oliver Kiddle
2020-10-17 15:24     ` Bart Schaefer
2020-10-17 16:25       ` Ahmad Ismail [this message]
2020-10-17 22:15         ` Bart Schaefer
2020-10-18 18:23           ` Ahmad Ismail
2020-10-17 12:28   ` 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='CAHAhJwL5F_Z5X7XacV-hN=GwNJ1iasZmGJZKfX6rLcF_9nXFww@mail.gmail.com' \
    --to=ismail783@gmail.com \
    --cc=opk@zsh.org \
    --cc=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).