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