alkaa/roles/git/files/lazygit.yml
2025-05-27 08:46:22 +02:00

49 lines
1.4 KiB
YAML

git:
paging:
colorArg: always
pager: delta --paging=never
customCommands:
- key: "<c-p>"
command: "git remote prune {{.SelectedRemote.Name}}"
context: "remotes"
loadingText: "Pruning..."
description: "prune deleted remote branches"
- key: "<c-p>"
command: "git branch --merged develop | grep -v '^[ *]*develop$' | xargs git branch -d"
context: "localBranches"
loadingText: "Pruning..."
description: "prune local branches that have been merged to develop"
- key: "<c-g>"
context: "global"
description: "Create new commit from examples"
prompts:
- type: "menu"
key: "message"
title: "git commit message"
options:
- name: "update Directory.Build.Props on shared"
description: "build(deps): use beta fw nugets"
value: "build(deps): use beta fw nugets"
- name: "update Directory.Build.Props on verwaltung"
description: "build(deps): use beta fw + shared nugets"
value: "build(deps): use beta fw + shared nugets"
- type: "input"
title: "task number without #"
key: "number"
initialValue: ""
command: "git commit -m '{{.Form.message}}' -m 'refs #{{.Form.number}}'"
loadingText: "Creating commit..."
keybinding:
universal:
scrollLeft: '['
scrollRight: ']'
nextTab: 'L'
prevTab: 'H'
os:
openLink: "open_lazygit_url {{link}}"