update lazygit config
This commit is contained in:
parent
1907cbfdf0
commit
502d0dc78a
2 changed files with 30 additions and 27 deletions
|
|
@ -282,12 +282,12 @@ git:
|
|||
disableForcePushing: false
|
||||
|
||||
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-commit-message-prefix
|
||||
commitPrefix:
|
||||
# commitPrefix:
|
||||
# pattern to match on. E.g. for 'feature/AB-123' to match on the AB-123 use "^\\w+\\/(\\w+-\\w+).*"
|
||||
pattern: ""
|
||||
# pattern: ""
|
||||
|
||||
# Replace directive. E.g. for 'feature/AB-123' to start the commit message with 'AB-123 ' use "[$1] "
|
||||
replace: ""
|
||||
# replace: ""
|
||||
|
||||
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-branch-name-prefix
|
||||
branchPrefix: ""
|
||||
|
|
@ -573,3 +573,24 @@ keybinding:
|
|||
bulkMenu: b
|
||||
commitMessage:
|
||||
commitMenu: <c-o>
|
||||
|
||||
customCommands:
|
||||
- key: "C"
|
||||
command: 'cog commit "{{ .Form.Type }} {{ .Form.Description }}" {{if .Form.Scopes}}({{ .Form.Scopes }}){{end}}'
|
||||
description: "Commit with cocogitto"
|
||||
context: "files"
|
||||
prompts:
|
||||
- type: "menuFromCommand"
|
||||
title: "Select the commit type"
|
||||
key: "Type"
|
||||
command: >
|
||||
bash -c "cog commit --help | sed -n 's/.*\\[possible values: \\(.*\\)\\].*/\\1/p' | tr ', ' '\\n' | sed '/^$/d' | sort"
|
||||
- type: "input"
|
||||
title: "Enter the scope(s) of this change"
|
||||
key: "Scopes"
|
||||
- type: "input"
|
||||
title: "Enter a short description of the change"
|
||||
key: "Description"
|
||||
- type: "confirm"
|
||||
title: "Is the commit message correct?"
|
||||
body: "{{ .Form.Type }}{{if .Form.Scopes}}({{ .Form.Scopes }}){{end}}: {{ .Form.Description }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue