{"id":42684254,"url":"https://github.com/nanshanyi/pastedirect","last_synced_at":"2026-05-10T08:15:24.267Z","repository":{"id":193254069,"uuid":"564752521","full_name":"nanshanyi/PasteDirect","owner":"nanshanyi","description":"mac剪切板工具","archived":false,"fork":false,"pushed_at":"2025-12-16T11:55:50.000Z","size":1628,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-20T01:25:01.703Z","etag":null,"topics":["mac","paste","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanshanyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-11T12:18:21.000Z","updated_at":"2025-12-11T07:54:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"73ce9551-644e-45f1-ba66-4c12f2d436b0","html_url":"https://github.com/nanshanyi/PasteDirect","commit_stats":null,"previous_names":["nanshanyi/pastedirect"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/nanshanyi/PasteDirect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanshanyi%2FPasteDirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanshanyi%2FPasteDirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanshanyi%2FPasteDirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanshanyi%2FPasteDirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanshanyi","download_url":"https://codeload.github.com/nanshanyi/PasteDirect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanshanyi%2FPasteDirect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28877031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mac","paste","swift"],"created_at":"2026-01-29T12:00:56.376Z","updated_at":"2026-05-10T08:15:24.260Z","avatar_url":"https://github.com/nanshanyi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"128\" height=\"128\" alt=\"PasteDirect\" src=\"https://github.com/user-attachments/assets/9873c83e-8839-4a49-86a4-aaf9c8439f07\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ePasteDirect\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  轻量、安全、纯本地的 macOS 剪贴板历史管理工具\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/macOS-13.0%2B-blue\" alt=\"macOS 13.0+\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-6-orange\" alt=\"Swift 6\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/version-3.1.3-green\" alt=\"Version 3.1.3\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-lightgrey\" alt=\"License\"\u003e\n\u003c/p\u003e\n\n## 特性\n\n- 🔒 **纯本地运行** — 所有数据存储在本地 SQLite 数据库，零网络请求，隐私无忧\n- 📋 **多格式支持** — 文本、图片、HTML、RTF、富文本、代码片段，通通记录\n- 🎨 **颜色识别** — 自动检测剪贴板中的 Hex 颜色值并可视化展示\n- ⌨️ **快捷键呼出** — 默认 `⌘⇧V`，支持自定义快捷键\n- 🔍 **快速搜索** — 直接键入关键词即时过滤历史记录，搜索框使用 pill 风格\n- 🏷️ **多维筛选** — 按类型（文本/图片/颜色）、来源应用、时间范围组合筛选，筛选条件以 tag 形式贴合展示\n- 👁️ **空格预览** — 按空格键快速预览选中内容，支持文本、图片、颜色详情\n- 🖱️ **多种粘贴方式** — 双击粘贴、回车粘贴、拖拽到目标位置\n- 📝 **纯文本模式** — 一键去除富文本格式，粘贴为纯文本\n- 🧹 **自动清理** — 可设置保留时长：1 天 / 1 周 / 1 月 / 永久\n- 🚫 **应用过滤** — 可忽略特定应用（如钥匙串、密码管理器）的剪贴板内容\n- 🪟 **适配 macOS 26** — 全面支持液态玻璃（Liquid Glass）效果\n\u003cimg width=\"2704\" height=\"958\" alt=\"2026_04_27_10_40_37\" src=\"https://github.com/user-attachments/assets/27c5215e-8603-4f63-8413-42eb5f08329d\" /\u003e\n\u003cimg width=\"2706\" height=\"1404\" alt=\"2026_04_27_10_41_07\" src=\"https://github.com/user-attachments/assets/1cf3e03c-c9c5-442b-b909-ac82c2773ccc\" /\u003e\n\u003cimg width=\"2704\" height=\"1514\" alt=\"2026_04_27_10_41_27\" src=\"https://github.com/user-attachments/assets/ef2999b6-c240-4c3a-94a4-1849e1c5b42d\" /\u003e\n\n## 安装\n\n### 下载\n\n从 [Releases](https://github.com/nanshanyi/PasteDirect/releases) 下载最新版本的 `.dmg` 文件，打开后将 `PasteDirect.app` 拖入 `/Applications` 目录即可。\n\n### 首次运行\n\n由于使用自签名证书，首次运行需要手动授权：\n\n1. 右键点击 `PasteDirect.app` → 选择「打开」\n2. 在弹出的对话框中点击「打开」\n\n或通过终端：\n\n```bash\nxattr -cr /Applications/PasteDirect.app\nopen /Applications/PasteDirect.app\n```\n\n首次启动后，系统会提示授予「辅助功能」权限，这是监听剪贴板和模拟粘贴操作所必需的。\n\u003cimg width=\"530\" height=\"494\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cf00f162-b4ff-4ddc-8c7c-974d5bc2caca\" /\u003e\n自签名证书系统会有安全提示，系统设置-\u003e隐私与安全性-\u003e仍然打开即可\n\n### 更新无忧\n\n从 v2.2.0 起，应用采用自签名证书机制，更新时辅助功能权限自动保留，无需重新授权。\n\n从 v3.1.3 起，应用内支持手动检查更新，也可在设置中开启启动时自动检查更新。\n\n## 使用方式\n\n| 操作 | 说明 |\n|------|------|\n| `⌘⇧V` | 呼出 / 隐藏剪贴板面板（可自定义） |\n| 双击 | 粘贴选中项 |\n| `Enter` | 粘贴选中项 |\n| `Space` | 预览选中项 |\n| `Delete` | 删除选中项 |\n| `Esc` | 依次关闭预览 / 筛选弹窗 / 清空搜索筛选 / 关闭面板 |\n| 拖拽 | 将条目拖拽到目标位置直接粘贴 |\n| 输入文字 | 搜索过滤历史记录，`Backspace` 可逐个移除筛选条件 |\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"629\" alt=\"PasteDirect 设置\" src=\"https://github.com/user-attachments/assets/a315da78-25d5-4382-8d93-4d827ec14a62\" /\u003e\n\u003c/p\u003e\n\n## 设置选项\n\n- **开机启动** — 登录时自动运行\n- **状态栏图标** — 显示 / 隐藏菜单栏图标\n- **直接粘贴** — 选中后自动粘贴到当前应用\n- **纯文本粘贴** — 去除格式，仅粘贴纯文本\n- **历史保留时长** — 1 天 / 1 周 / 1 月 / 永久\n- **忽略应用** — 配置不记录剪贴板的应用列表\n- **快捷键** — 自定义全局呼出快捷键\n- **检查更新** — 支持手动检查更新与启动时自动检查\n\n## 从源码构建\n\n### 环境要求\n\n- macOS 13.0+\n- Xcode 16+\n- Swift 6\n\n### 构建步骤\n\n```bash\ngit clone https://github.com/nanshanyi/PasteDirect.git\ncd PasteDirect\nopen PasteDirect.xcodeproj\n```\n\n在 Xcode 中选择 `PasteDirect` scheme，点击运行即可。依赖通过 Swift Package Manager 自动拉取。\n\n### 依赖项\n\n| 库 | 用途 |\n|----|------|\n| [KeyboardShortcuts](https://github.com/sindresorhus/KeyboardShortcuts) | 全局快捷键 |\n| [SQLite.swift](https://github.com/nicklama/SQLite.swift) | 本地数据库 |\n| [SnapKit](https://github.com/SnapKit/SnapKit) | Auto Layout |\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanshanyi%2Fpastedirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanshanyi%2Fpastedirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanshanyi%2Fpastedirect/lists"}