From cc591f3c36179bb01331dd81b84d7d5bb25c42b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 27 Jul 2022 07:45:54 +0200 Subject: [PATCH] Add some patch related binds to aerc --- symlinks/config/aerc/binds.conf | 11 +++++++++++ symlinks/config/aerc/templates/quoted_thanks | 8 ++++++++ symlinks/config/aerc/templates/thanks | 5 +++++ 3 files changed, 24 insertions(+) create mode 100644 symlinks/config/aerc/templates/quoted_thanks create mode 100644 symlinks/config/aerc/templates/thanks diff --git a/symlinks/config/aerc/binds.conf b/symlinks/config/aerc/binds.conf index f5e0393..177e21c 100644 --- a/symlinks/config/aerc/binds.conf +++ b/symlinks/config/aerc/binds.conf @@ -55,6 +55,13 @@ n = :next-result N = :prev-result = :clear +ga = :flag:pipe -mb git am -3 +gp = :term git push +gl = :term git log + +rt = :reply -a -Tthanks +Rt = :reply -qa -Tquoted_thanks + [view] / = :toggle-key-passthrough/ q = :close @@ -109,6 +116,10 @@ e = :edit a = :attach d = :detach +V = :header -f X-Sourcehut-Patchset-Update NEEDS_REVISION +A = :header -f X-Sourcehut-Patchset-Update APPLIED +R = :header -f X-Sourcehut-Patchset-Update REJECTED + [terminal] $noinherit = true $ex = diff --git a/symlinks/config/aerc/templates/quoted_thanks b/symlinks/config/aerc/templates/quoted_thanks new file mode 100644 index 0000000..50de5b5 --- /dev/null +++ b/symlinks/config/aerc/templates/quoted_thanks @@ -0,0 +1,8 @@ +X-Sourcehut-Patchset-Update: APPLIED + +Thanks! + +{{exec "{ git remote get-url --push origin; git reflog -2 origin/master --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf 'To %s\n %s..%s master -> master'" ""}} + +On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote: +{{wrapText .OriginalText 72 | quote}} diff --git a/symlinks/config/aerc/templates/thanks b/symlinks/config/aerc/templates/thanks new file mode 100644 index 0000000..a310988 --- /dev/null +++ b/symlinks/config/aerc/templates/thanks @@ -0,0 +1,5 @@ +X-Sourcehut-Patchset-Update: APPLIED + +Thanks! + +{{exec "{ git remote get-url --push origin; git reflog -2 origin/master --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf 'To %s\n %s..%s master -> master'" ""}}