Hallucinate up t and T in lazygit

This commit is contained in:
2025-10-30 19:16:39 +01:00
parent 1758a08ae4
commit 85a43d7c29

View File

@@ -288,9 +288,15 @@ customCommands:
context: "files"
command: 'oco --yes'
description: "Open commit options"
- key: "t"
context: "files"
command: "powershell -NoProfile -Command '$p=\"{{.SelectedPath}}\"; $e=[IO.Path]::GetExtension($p).TrimStart(\".\"); if([string]::IsNullOrEmpty($e)){ exit 0 }; $pattern=\"*.\" + $e; git lfs track \"$pattern\"'"
description: "LFS track by selected file extension"
- key: "T"
context: "files"
command: "powershell -NoProfile -Command '$p=\"{{.SelectedPath}}\"; $e=[IO.Path]::GetExtension($p).TrimStart(\".\"); if([string]::IsNullOrEmpty($e)){ exit 0 }; $pattern=\"*.\" + $e; git add -- \"$pattern\"; git commit -m (\"Track .\" + $e)'"
description: "Add and commit tracking for extension"
services:
"gitlab.neos.hr": "gitlab:gitlab.neos.hr"
os:
shell: "C:\\Program Files\\Git\\bin\\bash.exe"