-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Issue committing with locked signing key #1836
Comments
I would expect this not to work: The interaction model of What Vim version? What OS? What is |
That explanation makes perfect sense. Version: VIM 8.2 (from arch repos) |
Can you tell me if you have |
Just |
Well that would certainly explain it. You're telling GPG to hijack the current TTY away from Vim, so it's no surprise that the screen gets garbled without Vim knowing about it. I think I'll fix it by blanking out |
That makes sense. Iirc the rational behind it is to do with ssh-ing into the machine |
I found a workaround, but it's not pretty. Put this in #!/bin/sh
if [ -n "$FUGITIVE" ]; then
set -- --pinentry-mode loopback "$@"
fi
exec /usr/bin/gpg "$@" Alternatively, give the script a different name, and configure |
That worked thank you so much! |
I don't need it, and it messes up fugitive vim. tpope/vim-fugitive#1836
I currently have my pinentry program set to
pinentry-curses
for unlocking my signing keyWhen using fugitive to
:G commit
when the key is locked it will startpinentry-curses
to request the signing key password.However, when this happens it renders over
vim
and upon exitingvim
is looks messed up as the background ofpinentry-curses
is still present. This can be reset by doing!
to re-rendervim
Is there any way around this?
The text was updated successfully, but these errors were encountered: