combine-maccy-pastes
v0.1.2
Published
Combine the most recent Maccy clipboard entries into a single Markdown document.
Downloads
19
Maintainers
Readme
combine-maccy-pastes
Combine the most recent Maccy clipboard entries into a single Markdown document.
This is a small macOS utility for turning a run of clipboard history into one file you can save, share, or feed into another tool.
Main Use Case
combine-maccy-pastes 25 meeting-notes.mdThat writes the last 25 Maccy pastes into meeting-notes.md as plain Markdown content blocks, newest first, separated by blank lines.
Defaults:
combine-maccy-pastesstill uses10andcombined.md
Why
Maccy is good at storing lots of clipboard history. It is less convenient when you want to turn the last few copies into one clean document. This script does that without adding headings or metadata to the output by default.
Features
- Auto-detects the Maccy
Storage.sqlitedatabase - Combines the last
Nclipboard entries into one Markdown file - Skips image-only clipboard entries automatically
- Supports copying the combined result back to the clipboard
- Works from any directory as long as it can find the Maccy database
- Captures key implementation decisions in MADRs
Installation
From npm after publish:
npm install -g combine-maccy-pastesWithout installing globally:
npx combine-maccy-pastes 25 meeting-notes.mdFrom source during local development:
git clone https://github.com/mliq/combine-maccy-pastes.git
cd combine-maccy-pastesRequirements:
- macOS with Maccy
- Node.js
sqlite3available on yourPATH
If sqlite3 is missing on macOS, install it with:
brew install sqliteUsage
combine-maccy-pastes [count] [output.md] [--copy]Examples:
combine-maccy-pastes
combine-maccy-pastes 25
combine-maccy-pastes 25 meeting-notes.md
combine-maccy-pastes notes.md
combine-maccy-pastes 10 --copyFrom a local clone, use node combine-maccy-pastes.js ... instead.
Sample Session
$ combine-maccy-pastes 5 notes.md
$ cat notes.md
First copied note
Second copied note
Third copied noteExample Output
If your recent clipboard history is:
First note
Second note
Third noteThen:
combine-maccy-pastes 3 combined.mdProduces:
First note
Second note
Third noteOptions
- positional
count: Number of recent Maccy items to combine. Defaults to10. - positional
output.md: Output Markdown file path. Defaults tocombined.md. --copy: Copy the combined result to the clipboard withpbcopy--db: Use a specific SQLite database path-: Use-as the output path to write to stdout instead of a file-h,--help: Show usage
Database Detection
If --db is not provided, the script looks for Storage.sqlite in this order:
- The standard Maccy container path in the current user's home directory
- The current working directory
- Next to
combine-maccy-pastes.jsfor local/dev setups
Notes
- This project targets macOS with Maccy.
- Finder file-copy entries are treated like any other text-backed clipboard item.
- Image-only clipboard entries are skipped automatically.
Decisions
Project decisions are tracked in docs/adr/README.md. The release checklist lives in docs/release-checklist.md.
License
MIT
