Open ThomasAH opened 5 years ago
because master currently does not work for me
That's unfortunate. Would you be able to describe what's not working, either here or in a distinct issue?
Implement g:GPGReplaceKeys to automatically replace keys
That sounds like useful functionality. Thanks for the patch. I can look into integrating it.
because master currently does not work for me
That's unfortunate. Would you be able to describe what's not working, either here or in a distinct issue?
I reported one problem in #104. I don't remember exactly if I encountered more problems. I could try again when #104 is fixed.
I have attached two patches against 2.6.1 (because master currently does not work for me):
fields4-identity.patch
: a trivial cleanup patch that replaces multiple uses offields[4]
, later followed bylet identity = fields[4]
with setting identity earlier and using that. The following patch would otherwise introduce another use of fields[4], which I wanted to avoid.auto-replace-keys.patch
: This is the main patch: Implement g:GPGReplaceKeys to automatically replace keysIf set, this dictionary allows to automatically replace keys of recipients with other keys when loading encrypted files (value is the new key id) or to automatically drop those keys (value is an empty string). When searching for recipients by name (e.g. by using :GPGEditRecipients) the keys included in this dictionary will be omitted from search results. Default is unset. Example:
fields4-identity.patch.txt auto-replace-keys.patch.txt
Not part of the patches just included if someone wants to use it in the same way as we do, our central vimrc contains the following code and uses the same replacekeys.txt file format as used by
generate-openpgpkey-hu
on https://wiki.gnupg.org/WKDHosting:Would you be interested to have this in 2.7? If yes, I could port it as soon as the 2.7/master branch works again for me.