fmerge

Crates.iofmerge
lib.rsfmerge
version0.2.2
sourcesrc
created_at2023-04-04 23:11:24.81075
updated_at2024-11-12 20:48:22.570062
descriptionMerging files recursively.
homepagehttps://replicadse.github.io/fmerge
repositoryhttps://github.com/replicadse/fmerge
max_upload_size
id830539
size70,968
Alexander Weber (cchexcode)

documentation

README

fmerge

fmerge is a tool that allows merging files recursively and with custom regex patterns. The include file statements are always relative to the file that includes them.

Regex matches

Capture groups

  • 1 (required): The relative file path for the file to be included.
  • 2 (optional): The indentation of the included file in the current one (note that this excludes the first line).

Example

  • fmerge merge -p "\{\{\s*([\w./]+)\s*\+?(\d+)?\s*\}\}" ./root.part
    Pattern that is matched: {{ relative_path +indentation }} => {{ leaf.part +2 }}
Commit count: 18

cargo fmt