Skip to main content

Module diff_handlers

Module diff_handlers 

Source
Expand description

§Diff Handlers

Configuration-driven external diff viewing for non-text files.

Example .ta/diff-handlers.toml:

[[handler]]
pattern = "*.uasset"
command = "UnrealEditor"
args = ["{file}"]
description = "Unreal Engine asset"

[[handler]]
pattern = "*.{png,jpg,jpeg}"
command = "open"  # macOS
args = ["-a", "Preview", "{file}"]
description = "Image file"

[[handler]]
pattern = "*.blend"
command = "blender"
args = ["{file}"]
description = "Blender file"

Structs§

DiffHandlersConfig
Configuration for external diff handlers loaded from .ta/diff-handlers.toml.
HandlerRule
A single handler rule mapping file patterns to external applications.

Enums§

DiffHandlerError