Updated Custom Commands Compendium (markdown)

Sail0rd 2024-07-18 21:15:18 +02:00
parent 00dab3aa2a
commit da9f071c2b

@ -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
```