From ee3a1f24c3bf11ef82699700e215501d28d1c146 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 14 Jul 2021 17:30:28 +0200 Subject: [PATCH] completions/gpg: Don't require an email address Fixes #8079 --- share/functions/__fish_complete_gpg_user_id.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_gpg_user_id.fish b/share/functions/__fish_complete_gpg_user_id.fish index 6abce285f..449b72f9f 100644 --- a/share/functions/__fish_complete_gpg_user_id.fish +++ b/share/functions/__fish_complete_gpg_user_id.fish @@ -4,5 +4,8 @@ function __fish_complete_gpg_user_id -d "Complete using gpg user ids" -a __fish_ # gpg doesn't seem to like it when you use the whole key name as a # completion, so we skip the part and use it as a description. # It also replaces \x3a from gpg's output with colons. - $__fish_complete_gpg_command --list-keys --with-colon | string split -a -f 10 : | string replace '\x3a' : | string replace -rf '(.*) <(.*)>' '$1\t$2' + # + # TODO: I tried with and it worked, this was possibly fixed in gpg. + # Regardless, it's probably nicer as a description. + $__fish_complete_gpg_command --list-keys --with-colon | string split -a -f 10 : | string replace '\x3a' : | string replace -r '(.*) <(.*)>' '$1\t$2' end