aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2022-12-09 22:56:17 +0100
committerDavid Runge <dave@sleepmap.de>2022-12-09 22:56:17 +0100
commit196f613a08090031f851d13a40b57dd1cee22ef9 (patch)
tree1994cef590c813aaab8c182da6022993877beda9
parentf5777782a31900a21e4bf9be4a2dd48c6751c95f (diff)
downloaddotfiles-196f613a08090031f851d13a40b57dd1cee22ef9.tar.gz
dotfiles-196f613a08090031f851d13a40b57dd1cee22ef9.tar.bz2
dotfiles-196f613a08090031f851d13a40b57dd1cee22ef9.tar.xz
dotfiles-196f613a08090031f851d13a40b57dd1cee22ef9.zip
Add ultisnips snippets for neovim
.config/nvim/UltiSnips/: Add mail and text file ultisnips snippets for the use with neovim.
-rw-r--r--.config/nvim/UltiSnips/mail.snippets33
-rw-r--r--.config/nvim/UltiSnips/text.snippets15
2 files changed, 48 insertions, 0 deletions
diff --git a/.config/nvim/UltiSnips/mail.snippets b/.config/nvim/UltiSnips/mail.snippets
new file mode 100644
index 0000000..3fceb03
--- /dev/null
+++ b/.config/nvim/UltiSnips/mail.snippets
@@ -0,0 +1,33 @@
+snippet validate_pgp_key "A mail to verify a PGP key" b
+Hi ${1: Name},
+
+Please clear-sign [1] the attached `token.txt` file using the mentioned root
+key (not any of its subkeys) and send the resulting file to:
+
+David Runge <dvzrv@master-key.archlinux.org>
+
+To clearsign the file, use
+
+\`\`\`
+gpg --armor --default-key ${2: PGP KEY ID}! --clearsign token.txt
+\`\`\`
+
+If your root key does not provide the Signature capability (S), make sure to
+toggle it on temporarily:
+
+\`\`\`
+gpg --edit-key $2
+
+change-usage
+
+S
+
+save
+\`\`\`
+
+Best,
+David
+
+[1] https://www.gnupg.org/gph/en/manual/x135.html
+
+endsnippet
diff --git a/.config/nvim/UltiSnips/text.snippets b/.config/nvim/UltiSnips/text.snippets
new file mode 100644
index 0000000..866b0ac
--- /dev/null
+++ b/.config/nvim/UltiSnips/text.snippets
@@ -0,0 +1,15 @@
+snippet pgp_validation_token "A token text to use for verification" b
+I am the holder of the PGP key with the ID
+${1:PGP KEY ID}
+and the mail address
+${2:UID}
+
+I am clear-signing this token file for the purpose of validating my PGP key ID
+and UID for the use in archlinux-keyring.
+https://gitlab.archlinux.org/archlinux/archlinux-keyring
+The resulting clear-signed token file has no application beyond its intended
+scope.
+
+Verification token:
+${3:`tr -dc A-Za-z0-9 </dev/urandom | head -c 13`}
+endsnippet