Persist the default Git diff layout

This commit is contained in:
Georg Bauer
2026-07-28 19:07:59 +02:00
parent 07c89094b4
commit 191ff0b2ce
7 changed files with 64 additions and 21 deletions

View File

@@ -199,6 +199,20 @@ impl App {
PreferenceSection::Git,
"GIT DIFFS",
column![
row![
hint(
text("Default layout").size(13).width(Length::Fill),
"Layout used whenever a file diff is opened. The control in the diff can still change that one view.",
),
pick_list(
&GIT_DIFF_LAYOUTS[..],
Some(self.preference_draft.git_diff_layout),
Message::PreferenceGitDiffLayoutChanged,
)
.width(240),
]
.spacing(12)
.align_y(Alignment::Center),
row![
hint(
text("Algorithm").size(13).width(Length::Fill),