jesseduffield / jesseduffield/lazygit

Track renamed files in the custom commands

Open
#2,240 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
When creating the custom command "[Comparing a file in a previous revision with the working copy](https://github.com/jesseduffield/lazygit/wiki/Custom-Commands-Compendium#comparing-a-file-in-a-previous-revision-with-the-working-copy)", I noticed that `{{.SelectedCommitFile.Name}}` doesn't work if a file has been renamed.

**Describe the solution you'd like**
A property like `{{.SelectedCommitFile.CurrentName}}` or similar, that traces all the renames of the file between all the commits, and gives me the name of that file in my current working tree.

**Describe alternatives you've considered**
I didn't consider any alternative TBH, but I suspect that this feature request is also closely related to bug #2141

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.