From 0dcc705e892b338c4918ed2706325822638add7b Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Tue, 16 Jan 2024 16:19:50 +0100 Subject: [PATCH] snippets: add snippet for running session commits Co-Authored-by: iGor milhit --- my_snippets/gitcommit.lua | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/my_snippets/gitcommit.lua b/my_snippets/gitcommit.lua index d0e71d2..f8d99c0 100644 --- a/my_snippets/gitcommit.lua +++ b/my_snippets/gitcommit.lua @@ -10,6 +10,7 @@ local get_date = function() end return { + -- Commit messages related to the workplace s( { trig = "hr", @@ -20,6 +21,17 @@ return { t("organisation: enregistre les heures") } ), + s( + { + trig = "aou", + name = "AoU stats commit message", + dscr = "Commit message for an increment of AoU validation statistics." + }, + { + t("r+e: incrémente les stats de validation de l'AoU") + } + ), + -- Commit messages related to my private life s( { trig = "ic", @@ -37,12 +49,17 @@ return { ), s( { - trig = "aou", - name = "AoU stats commit message", - dscr = "Commit message for an increment of AoU validation statistics." + trig = "cp", + name = "Running session commit message", + dscr = "Insert a commit message for running sessions commits." }, - { - t("r+e: incrémente les stats de validation de l'AoU") - } + fmt( + [[ + course à pied : documente la séance du {1} + ]], + { + f(get_date, {}) + } + ) ) }