wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.33k stars 136 forks source link

`gd` does not show diff in preview #203

Closed taranlu-houzz closed 2 years ago

taranlu-houzz commented 2 years ago

Check list

Environment info

Problem / Steps to reproduce

When I try to use gd in my project repo, fzf pops up correctly and shows the modified file, but the preview is blank. The change is not staged, and when I use ga the preview does show the change correctly.

I also tried this in a clone of the forgit repo, and in that case, both gd and ga worked as expected.

I guess there must be something different about the config in my project repo, but I am unsure what that would be...

tvenable-mie commented 2 years ago

I have this issue as well, when the file name has spaces in it. (I'm on MacOS using Bash and forgit 75e9d12bac).

wfxr commented 2 years ago

@taranlu-houzz @tvenable-mie Thanks for your report! I make the pr #204 to fix this. Can you update and help test it?

tvenable-mie commented 2 years ago

@wfxr That PR fixes it for me. Thanks!

cjappl commented 2 years ago

Closing, opened a similar issue for fish for me to fix! Thanks for the help @taranlu-houzz @tvenable-mie