Skip to content

Configuration file support #2140

Open
@tahir-hassan

Description

@tahir-hassan

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.

Activity

remique

remique commented on Apr 14, 2024

@remique
Contributor

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

extrawurst commented on Apr 14, 2024

@extrawurst
Collaborator

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

remique

remique commented on Apr 24, 2024

@remique
Contributor

Ah, I misread what the issue was about 🥲

I am working on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Configuration file support · Issue #2140 · gitui-org/gitui