-
Notifications
You must be signed in to change notification settings - Fork 142
Unable to exit git forgit diff
on ZSH in Windows with Delta
#423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting the issue. Interesting case. The command we execute when pressing enter in git forgit diff_enter <file> | git forgit pager enter Can you check what happens if you call that command directly for your file ( |
Thanks for the quick reply! |
@marovira Thanks for your feedback. Then the next step to isolate the problem would be a simplified version of how we call echo "zsh/zshrc" | fzf --bind="enter:execute(git forgit diff_enter {} | git forgit pager enter)" And also we could check the simplest combination of echo "zsh/zshrc" | fzf --bind="enter:execute(less {})" How do these two work? |
Ok so:
I'm not sure if the fact that the |
Thanks for checking. The difference concerning the process is probably caused by So obviously this is not a problem with forgit. I would suggest that you open an upstream issue for |
Thanks for the help @carlfriedrich! |
Issue
On Windows with the following setup:
core.pager = delta --side-by-side --width ${FZF_PREVIEW_COLUMNS-$COLUMNS}
fzf
.In a repo with a changed file, if I enter
git forgit diff
, thefzf
menu correctly pops up displaying the changed file. If I enter?
, the diff preview is correctly shown. Now, if I press enter, the diff is opened in delta. At this point, no matter what key (or combination of keys) I press, there's no way to exit delta to return to the terminal.Here's the diff preview working correctly:

If I press enter to select

zsh/zshrc
, I enter this screen:At which point no matter what key I press there's no way to exit back to the terminal.
Observations
git diff
directly works without issue.less
process is spawned which appears to be blocking everything. What's interesting is that if I press any regular key (like j, k, etc) and I then kill the process using Task Manager, those keys are shown as being entered intofzf
's prompt. This leads me to believe that for some reasonfzf
appears to be swallowing the key presses that should've been going to delta.Config
Relevant git config:
Note
Please ignore the weird rendering on delta's output. I had to resize the window to make sure the screenshots didn't come out huge and that messed up with the display.
The text was updated successfully, but these errors were encountered: