.md Merge

by Tosatur
5
4
3
2
1
Score: 16/100

Description

The .md Merge plugin simplifies the process of consolidating multiple markdown files into one neatly combined document. It scans a chosen folder and, if needed, dives into subfolders to collect every .md file, then merges them into a single output file. Users can fine tune the process by excluding specific files with glob patterns, skipping hidden notes, or even customizing the output filename with date-based templates. The plugin quietly handles folder creation if the destination doesn't exist and offers quick access through a sidebar button, command palette, or hotkeys.

Reviews

No reviews yet.

Stats

6
stars
1,268
downloads
2
forks
277
days
276
days
278
days
1
total PRs
1
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
0
commits

Latest Version

9 months ago

Changelog

  • Removed option to show/hide ribbon icon
  • Cleaned up code
  • Fixed manifest.json

README file from

Github

.md Merge

.md Merge is an Obsidian plugin that allows you to merge multiple Markdown files from a folder (and optionally its subfolders) into a single consolidated file.

Features

  • Merge all .md files from a specified folder

  • Optional recursive mode to include subfolders

  • Customize the output file name using templates like {date}

  • Exclude specific files or patterns using glob syntax (e.g., README.md, drafts/*.md)

  • Optionally include or exclude hidden files

  • Create output folders automatically if they don't exist

  • Access functionality via:

    • Sidebar ribbon button
    • Command palette
    • Hotkey

Installation

  1. Download or clone this repository.

  2. Place the plugin folder inside .obsidian/plugins/ of your vault.

  3. Run npm install to install dependencies.

  4. Build the plugin with:

    npm run build
    
  5. Enable the plugin from Obsidian’s Settings → Community Plugins.

Settings

  • Source folder: Path relative to vault root; leave blank to merge from root.
  • Output folder: Where the merged file is saved; defaults to /merged
  • Output file name: Template name, supports {date}
  • Include hidden files: Include files that begin with a .
  • Recursive mode: Include files from subfolders.
  • Excluded files: Glob patterns to ignore (comma-separated).

Commands

  • Merge Markdown Files: Available in the command palette. Can also be triggered via hotkey.

Notes

  • Output file is overwritten on each merge.
  • Input files must have the .md extension.
  • Output folder and file are created if they don't exist.

License

GNU General Public License v3.0

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.