Updated Custom Commands Compendium (markdown)

dhay3 2024-09-09 17:20:48 +08:00
parent 0d06838ffd
commit fbe2441f6e

@ -518,4 +518,27 @@ customCommands:
- key: message
title: 'Enter a commit message:'
type: input
```
gitmoji with scope field like conventional commits
```yaml
customCommands:
- command: "git commit -m '{{ .Form.emoji }} {{ if .Form.scope }} ({{ .Form.scope }}): {{ end }} {{ .Form.message }}'"
context: files
description: Commit changes using gitmojis
key: C
prompts:
- command: gitmoji -l
filter: ^(.*?) - (:.*?:) - (.*)$
key: emoji
labelFormat: '{{ .group_1 }} - {{ .group_3 }}'
title: 'Choose a gitmoji: '
type: menuFromCommand
valueFormat: '{{ .group_2 }}'
- key: scope
title: 'Enter the scope of current changes: '
type: input
- key: message
title: 'Enter the commit title: '
type: input
```