From da9f071c2b67d5b25ca5ec5070ac0f355f7b1908 Mon Sep 17 00:00:00 2001 From: Sail0rd <55802415+Sail0rd@users.noreply.github.com> Date: Thu, 18 Jul 2024 21:15:18 +0200 Subject: [PATCH] Updated Custom Commands Compendium (markdown) --- Custom-Commands-Compendium.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index 6c08121..8721412 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -495,4 +495,27 @@ customCommands: # Rebase onto the base branch git rebase $BASE_BRANCH +``` + +## Add Gitmojis to commit description + +When you want to be able to select an emoji just like with gitmoji but within lazygit (require gitmoji installed) + +```yaml +customCommands: +- command: git commit -m '{{ .Form.emoji }} {{ .Form.message }}' + context: files + description: Commit changes using gitmojis + key: C + prompts: + - command: gitmoji -l + filter: ^(.*?) - (:.*?:) - (.*)$ + key: emoji + labelFormat: '{{ .group_1 }} - {{ .group_3 }}' + title: 'Select a gitmoji:' + type: menuFromCommand + valueFormat: '{{ .group_2 }}' + - key: message + title: 'Enter a commit message:' + type: input ``` \ No newline at end of file