中文说明: README.zh-CN.md
MdMonitor is a macOS menu bar app for collecting Markdown links from your clipboard.
When monitoring is enabled, copied links in [label](link) format are processed automatically. It can also process a single plain URL from allowlisted domains by fetching the page title and summary first.
- Append to today's markdown file.
- Detect Git repositories by configured domains.
- Run your clone command template for recognized repositories.
Default clone template: git clone {repo}.git
Default clone directory: ~/Documents/cbm/repos
- Menu bar app with on/off monitoring.
- Daily de-duplication for markdown append and clone.
- Supports repository domains like
github.com,gitlab.com, and custom hosts. - Supports allowlisted plain-URL domains that should be fetched for page metadata before writing.
- Supports custom clone command template with
{repo}placeholder. - Supports configurable clone working directory.
- Detects WeChat image attachments from
mmbiz.qpic.cn, stores them in a persistent attachment library, and keeps them out of daily markdown links. - Tracks attachment MD5, can match external files named
{md5}_MD.{ext}in a configured resource directory, and writes attachment blacklist entries toblacklist.yaml. - Optional auto-merge for app windows (
Window -> Merge All Windows) with bundleId targeting (one per line). - Keeps daily logs next to daily markdown files.
- Main window includes markdown preview/source split view, calendar jump, attachment library, and live log panel.
- Built-in Sparkle 2 update channel (non-App Store).
- Output directory:
~/Documents/cbm - Daily markdown:
links_yyyyMMdd.md - Daily log:
logs_yyyyMMdd.log - Attachments:
attachments/<sha1>.<ext>with sidecar metadata - Attachment blacklist:
blacklist.yaml - Markdown line format:
* [ ] [label](link) - Metadata-enriched line format:
* [ ] [label](link) - summary
- Download
MdMonitor.dmgfrom Releases. - Open the DMG.
- Drag
MdMonitor.apptoApplications. - Launch from
Applications.
If Gatekeeper warns that the app cannot be verified, right-click MdMonitor.app -> Open -> confirm Open.
- Open Settings -> System -> Install mdm Command.
- The app installs
mdmto/usr/local/bin/mdm. - If permission is required, macOS will ask for administrator authorization.
- After successful installation, Settings shows
mdm installedand hides the install button. - Verify in Terminal:
mdm help - Common commands:
mdm today --path # print today's links markdown path mdm today --print # print today's markdown content mdm status # print current settings snapshot mdm help # print command help
- Click the menu bar icon and keep
Enable Monitoringon. - Copy markdown links while browsing.
- For special pages that are hard to convert in-browser, add the host to the plain-URL metadata allowlist and copy the raw page URL instead.
- Open the main window from menu:
Today- recent dates
- settings/help/updates
- Configure:
- output directory
- repository domains
- plain-URL metadata allowlist
- attachment resource directory
- clone command template
- clone directory
- auto-merge windows (optional bundleIds, one per line)
- language / notifications / launch-at-login
- In preview, you can:
- pause/resume monitoring
- switch between rendered / split / source views
- sort the current markdown file by domain on demand
- open the attachment library
- inspect MD5 / external resource matches / blacklist-assisted deletion for attachments
- Clipboard not captured:
- ensure monitoring is enabled
- if multi-link mode is off, copy exactly one markdown link
- for plain URLs, add the domain to the metadata allowlist first
- check daily log file in output directory
- A link is appended but not cloned:
- it did not match repository domain/path rules
- Spotlight opens old version:
- keep only one install location (
/Applicationspreferred) - run
make refresh-launch-services APP_PATH=/Applications/MdMonitor.appif needed
- keep only one install location (
- License: MIT
- Third-party acknowledgements: docs/acknowledgements.md
Development and release workflow are documented in docs/contribution.md.