Open lilyball opened 2 years ago
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
I see we have programs.git.difftastic.enable
. Should this be closed?
I see we have
programs.git.difftastic.enable
. Should this be closed?
No. The issue is with programs.git.difftastic.enable
conflicting with programs.git.delta.enable
which was not fixed. Neither does programs.git
have any special things for difftool
options.
Description
Difftastic has documentation on configuring it as a
difftool
. It would be great if home-manager had aprograms.git.difftastic.enableDifftool
option that set up the difftool config, so I could set that instead ofprograms.git.difftool.enable
if I'm already using a conflicting tool (likedelta
).According to the linked documentation, the difftool config looks like
In this case, the config option should just set the
difftool.difftastic.cmd
config (such thatgit difftool -t difftastic
works). The others can be configured separately by the user as desired.The primary use-case of this option is to allow the existing
programs.git.difftastic
options to apply to the newly-configured difftool.Alternatives considered
The option here could be called
programs.git.difftool.difftastic.enable
instead, but that makes it less obvious that theprograms.git.difftastic
options would apply.programs.git.difftastic
could gain a read-only optioncmd
that contains the command string, thus allowing users to setprograms.git.extraConfig.difftool.difftastic.cmd = config.programs.git.difftastic.cmd
, though this feels awkward and harder to document.An option
programs.git.difftool
could be added that's an enum that currently just allows the string"difftastic"
, which would not only setprograms.git.difftastic.enableDifftool
totrue
but would also set thediff.tool
anddifftool.prompt
configs, along withpager.difftool = true
as recommended by the linked documentation. It might also want to defaultcore.pager
to the same value thatprograms.git.difftastic.enable
sets.Maintainers
@rycee