Skip to content
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

Decryption failures in nvim #116

Closed
djvs opened this issue Dec 12, 2020 · 1 comment
Closed

Decryption failures in nvim #116

djvs opened this issue Dec 12, 2020 · 1 comment

Comments

@djvs
Copy link

djvs commented Dec 12, 2020

Steps to reproduce (for me at least):

killall gpg-agent # (fresh state)
vim myfile.gpg
-> Message could not be decrypted! (Press ENTER)
gpg -d myfile.gpg
-> (prompts for password, and after entering it, outputs the file)
vim myfile.gpg
-> (opens the file in vim as expected)

init.vim only has this re: gnupg:

Plug 'jamessan/vim-gnupg'

and added these to no effect:

let g:GPGUseAgent=1

~/.gnupg/gpg-agent.conf has pinentry-program /usr/bin/pinentry-curses, pinentry-timeout 0, and a more or less default default-cache-ttl and max-cache-ttl.

Hard to check but this may have coincided with switching from vim to nvim.

@jamessan
Copy link
Owner

Hard to check but this may have coincided with switching from vim to nvim.

Most likely. Neovim implements interaction with command-line tools differently and I haven't had time to switch to a job-based implementation.

You can either use a non-terminal based pinentry agent or "prime" gpg before running nvim.

Duplicate of #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants