gitui-org/gitui

Configuration file support

Open

#2,140 建立於 2024年3月20日

在 GitHub 查看
 (3 留言) (2 反應) (0 負責人)Rust (21,937 star) (721 fork)batch import
feature-requestgood first issue

描述

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.

貢獻者指南