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