1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# duodiff configuration — copy to ~/.config/duodiff/config.toml
# (or $XDG_CONFIG_HOME/duodiff/config.toml if XDG_CONFIG_HOME is set)
# All fields are optional; omitting a field uses the built-in default.
# Settings are only written back to disk when you change a value from the
# Config screen (`C`) — this file is never overwritten just by running duodiff.
# External diff tool used by the `D` key and the "Compare via External Diff Tool"
# palette action. Choices:
# - "auto" (default): resolves the first available tool from the fixed priority
# list: vim, nvim, code, meld, bcomp, smerge, ksdiff, difft.
# - "disabled": external diff is explicitly disabled.
# - A pinned tool name (e.g. "nvim", "vim", "code"): uses only that tool.
# external_diff_tool = "auto"
# Check GitHub on startup for a newer release and show a hint if one exists.
# Default: true. Throttled to once per day; fails silently when offline.
# (The `--no-update-check` CLI flag also forces it off for a single session.)
= true
# Enable mouse support: wheel scroll, click to focus/select, double-click to
# open/expand, right-click context menu. Default: true.
# (The `--no-mouse` CLI flag also forces it off for a single session; there is
# no `--mouse` flag to force it on.)
= true
# Colour theme: "dark" (default) or "light".
# Use "light" for terminals with a light background colour. Press `T` from any
# screen to toggle and persist the choice instead of editing this by hand.
= "dark"
# Unchanged context lines kept around each change in the File Diff view when
# not showing the full file. The `f` key toggles full-file vs collapsed view;
# collapsed view uses this radius. Adjust from the Config screen (`h`/`l` or
# `Left`/`Right` on the "Diff context" row) or edit directly here. Default: 3.
= 3
# How directory scans decide whether two files match: "fast" (default) compares
# size and modification time only; "precise" streams a SHA-256 of each side.
# In fast mode a same-size pair with differing timestamps is `≈` (content
# unverified) rather than a difference — switch to precise to resolve it.
# Change it with `c` in the Directory Tree, from the Config screen, or from the
# palette; all three persist the choice here. The `--scan-mode <fast|precise>`
# CLI flag overrides it for a single session without writing this file.
= "fast"
# Read each comparison root's nested .gitignore files. Default: true. The
# --gitignore / --no-gitignore flags override this only for the current session.
= true
# Rules applied to both roots before each root's .gitignore and .duodiffignore.
# Set this to [] to disable built-in defaults. Repeat --exclude PATTERN on the
# command line for higher-precedence, session-only rules.
= [".git/", ".hg/", ".svn/", "node_modules/", ".DS_Store", "Thumbs.db", "desktop.ini"]