From ae54fa12ce8c4eb8a70fb80da58709ea8bec1f7b Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 24 Jan 2024 22:22:28 +0500 Subject: Updates --- files/.config/lazygit/config.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'files/.config/lazygit/config.yml') diff --git a/files/.config/lazygit/config.yml b/files/.config/lazygit/config.yml index 48f6314..9c4b494 100644 --- a/files/.config/lazygit/config.yml +++ b/files/.config/lazygit/config.yml @@ -10,14 +10,36 @@ git: paging: colorArg: always pager: diff-so-fancy + externalDiffCommand: difft --color=always --background=light commitPrefixes: gazprom: pattern: "^(\\d+)-.*" replace: "feat: #$1 " - branchLogCmd: "git lg --color=always --no-merges --graph {{branchName}} --" + # branchLogCmd: "git lg --color=always --no-merges --graph {{branchName}} --" services: 'git.technocom.tech': 'gitea:git.technocom.tech' keybinding: commits: moveDownCommit: '' moveUpCommit: '' +customCommands: + - key: '' + description: 'Show Difftastic for current commit' + context: 'subCommits' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}"' + subprocess: true + - key: '' + description: 'Show difft of current commit' + context: 'files' + command: 'git dft -- {{.SelectedFile.Name | quote}}' + subprocess: true + - key: '' + description: 'Show difft of current commit' + context: 'commitFiles' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}" -- {{.SelectedCommitFile.Name | quote}}' + subprocess: true + - key: '' + description: 'Show difft of current commit' + context: 'commits' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}"' + subprocess: true -- cgit v1.2.3