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: Mon, 19 Oct 2020 00:23:12 +0600	[thread overview]
Message-ID: <CAHAhJwL=HQSYUqbCanNH1C2=uKMLdGeaQ6--hSAMaiFp6AxYhA@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7aKjV6Rr7YWN7q98vS7YqxeufpxYyt34WLtE6XSDh24oQ@mail.gmail.com>

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

Hi Bart Schaefer,

Thank you very much.

*Best Regards,Ahmad Ismail*


On Sun, Oct 18, 2020 at 4:15 AM Bart Schaefer <schaefer@brasslantern.com>
wrote:

> On Sat, Oct 17, 2020 at 8:24 AM Bart Schaefer <schaefer@brasslantern.com>
> 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 <ismail783@gmail.com> 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.
>

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

  reply	other threads:[~2020-10-18 18:24 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
2020-10-17 22:15         ` Bart Schaefer
2020-10-18 18:23           ` Ahmad Ismail [this message]
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='CAHAhJwL=HQSYUqbCanNH1C2=uKMLdGeaQ6--hSAMaiFp6AxYhA@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).