jesseduffield / jesseduffield/lazygit
Track renamed files in the custom commands
- 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
Assessment
This issue has not been assessed yet.