jj/cli/tests/sample-configs/valid/ui_command-env.toml
Yuya Nishihara 851d25cd68 cli: unify diff format/tool config variables
This allows users to override the external tool set in ~/.jjconfig.toml. The
config variable is renamed to ui.diff-formatter to be consistent with the other
diff/merge editor settings.

--tool=:<format> support will be added separately.

Closes #3327
2025-05-16 00:33:49 +00:00

15 lines
491 B
TOML

#:schema ../../../src/config-schema.json
[ui]
editor = { command = ["C:/Program Files/Notepad++/notepad++.exe", "-multiInst", "-notabbar", "-nosession", "-noPlugin"], env = {} }
[ui.diff-editor]
command = ["diffedit3", "$left", "$right"]
env = { RUST_LOG = "poem=debug" }
[ui.merge-editor]
command = ["diffedit3", "$left", "$base", "$right"]
env = { RUST_LOG = "poem=debug" }
[ui.diff-formatter]
command = ["difft", "--color=always", "$left", "$right"]
env = { DFT_BACKGROUND = "light" }