UnifiedMergeConfig

data class UnifiedMergeConfig(val original: Text, val highlightChanges: Boolean = true, val gutter: Boolean = true, val syntaxHighlightDeletions: Boolean = true, val allowInlineDiffs: Boolean = false, val syntaxHighlightDeletionsMaxLength: Int = 3000, val mergeControls: Boolean = true, val diffConfig: DiffConfig = defaultDiffConfig, val collapseUnchanged: CollapseConfig? = null)

Configuration for a unified merge view.

Constructors

Link copied to clipboard
constructor(original: Text, highlightChanges: Boolean = true, gutter: Boolean = true, syntaxHighlightDeletions: Boolean = true, allowInlineDiffs: Boolean = false, syntaxHighlightDeletionsMaxLength: Int = 3000, mergeControls: Boolean = true, diffConfig: DiffConfig = defaultDiffConfig, collapseUnchanged: CollapseConfig? = null)

Properties

Link copied to clipboard

When enabled, chunks with only inline changes display them inline.

Link copied to clipboard

When given, long stretches of unchanged text are collapsed.

Link copied to clipboard

Options for the diff algorithm.

Link copied to clipboard

Controls whether a gutter marker is shown next to changed lines.

Link copied to clipboard

Whether to mark inserted and deleted text in changed chunks. Defaults to true.

Link copied to clipboard

Whether to show accept/reject buttons. Defaults to true.

Link copied to clipboard

The other document to compare the editor content with.

Link copied to clipboard

Whether to syntax-highlight deleted lines. Defaults to true.

Link copied to clipboard

Max size for syntax-highlighted deletions. Defaults to 3000.