Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file support #2140

Open
tahir-hassan opened this issue Mar 20, 2024 · 3 comments · May be fixed by #2207
Open

Configuration file support #2140

tahir-hassan opened this issue Mar 20, 2024 · 3 comments · May be fixed by #2207
Labels

Comments

@tahir-hassan
Copy link

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.

@extrawurst extrawurst added the good first issue Good for newcomers label Mar 21, 2024
@remique
Copy link
Contributor

remique commented Apr 14, 2024

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

@extrawurst
Copy link
Owner

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

@remique
Copy link
Contributor

remique commented Apr 24, 2024

Ah, I misread what the issue was about 🥲

I am working on this one.

@remique remique linked a pull request Apr 28, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants