jesseduffield / jesseduffield/lazygit

Better context variables for custom commands

Open
#1,844 1 comment 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.**
I want to write custom commands to use `git difftool`, but `SelectedSubCommit` and `SelectedCommitFile` don't give me enough to work with.

**Describe the solution you'd like**
I'd like these objects to have pointers to their containers. For example `SelectedCommitFile.Commit` or `SelectedSubCommit.Remote`

**Describe alternatives you've considered**
Maybe an overall better solution is to add a command to lazygit that allows you to launch `git difftool` for the current diff view. This would be even more powerful as it would be able to use lazygit's great diff features.

**Additional context**
None

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.