mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Updated Custom Commands Compendium (markdown)
parent
0d06838ffd
commit
fbe2441f6e
1 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue