Required inputs such as target paths, anchors, and fragment paths remain
command-line arguments. Configuration only supplies optional defaults for the
global in_place setting and the insert command's after setting.
Boolean configuration values use true or false.
Global `in_place`
in_place controls whether successful edits rewrite the target file directly.
It defaults to false, so mapsplice writes the updated roadmap to standard
output unless another source enables in-place mode.
Set the file default with a top-level TOML key:
in_place = true
On Unix-like systems, mapsplice searches these files for global defaults, in
increasing precedence order:
$XDG_CONFIG_HOME/mapsplice/config.toml, whenXDG_CONFIG_HOMEis set and is valid Unicode../.mapsplice.tomlin the current working directory.
The environment variable is:
MAPSPLICE_IN_PLACE=true
Final precedence for in_place is:
--in-placeor-i, which can only forcetrue.MAPSPLICE_IN_PLACE.- Local
./.mapsplice.toml. - XDG
$XDG_CONFIG_HOME/mapsplice/config.toml. - Default
false.
There is no command-line flag that forces in_place = false; use
MAPSPLICE_IN_PLACE=false when a file default should be disabled for one
process.
Insert `after`
after controls whether mapsplice insert places the fragment after the
anchor. It defaults to before-anchor insertion, matching
mapsplice insert <target> <anchor> <file-to-insert> without --after.
Set the file default under the insert command table:
[cmds.insert]
after = true
On Unix-like systems, mapsplice searches these files for insert defaults,
in increasing precedence order:
~/.mapsplice.toml.$XDG_CONFIG_HOME/mapsplice/config.toml, when present../.mapsplice.tomlin the current working directory.
The environment variable is:
MAPSPLICE_CMDS_INSERT_AFTER=true
Final precedence for after is:
--after.MAPSPLICE_CMDS_INSERT_AFTER.- Local
./.mapsplice.toml. - XDG
$XDG_CONFIG_HOME/mapsplice/config.toml. - Home
~/.mapsplice.toml. - Default before-anchor insertion.
The command-line flag can only force after = true. There is no command-line
flag that forces after = false; use MAPSPLICE_CMDS_INSERT_AFTER=false when
a file default should be disabled for one process.