In vanilla, combining two damaged trimmed armour pieces in a crafting grid wipes the trim. Keep Trim keeps it.
The repaired piece takes the trim of the left-most item, or the top-most one if they share a column. Put the trim you want to keep on the left.
Works in the inventory grid, the crafting table and modded grids. Nothing to configure.
13,738 downloads on CurseForge