gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Configuration file support

Open tahir-hassan opened this issue 1 year ago • 3 comments

Whenever I run GitUI in a new working directory, when comparing differences, I have to do o to get into Options, then under Diff, I set "Ignore whitespaces" to true.

I would like it so that within the config directory, I can place a gitui.ron file with the content:

(
    diff: (
        ignore_whitespace: true,
        context: 3,
        interhunk_lines: 0,
    )
)

Then when GitUI starts up, it uses these values as the new defaults, and any changes you make would be written to .git/gitui in the working directory.

tahir-hassan avatar Mar 20 '24 16:03 tahir-hassan

Wait this is already implemented, right? I'm browsing through the code and I see that it saves the configuration under .git/gitui file.

remique avatar Apr 14 '24 17:04 remique

No, what this issue is about is not yet implemented: falling back on some system wide set of options for gitui

extrawurst avatar Apr 14 '24 18:04 extrawurst

Ah, I misread what the issue was about 🥲

I am working on this one.

remique avatar Apr 24 '24 19:04 remique