apple-notes

apple-notes

熱門

透過 macOS 上的 memo CLI 建立、檢視、編輯、刪除、搜尋、移動或匯出 Apple Notes。

38萬星標
8.1萬分支
更新於 2026/7/24
SKILL.md
readonlyread-only
name
apple-notes
description

透過 macOS 上的 memo CLI 建立、檢視、編輯、刪除、搜尋、移動或匯出 Apple Notes。

Apple Notes CLI

使用 memo notes 直接從終端機管理 Apple Notes。可以建立、檢視、編輯、刪除、搜尋、在資料夾間移動筆記,以及匯出為 HTML/Markdown。

設定

  • 安裝(Homebrew):brew tap antoniorodr/memo && brew install antoniorodr/memo/memo
  • 手動安裝(pip):pip install .(在複製儲存庫後)
  • 僅限 macOS;如果出現提示,請授予 Notes.app 的自動化權限。

檢視筆記

  • 列出所有筆記:memo notes
  • 依資料夾篩選:memo notes -f "Folder Name"
  • 搜尋筆記(模糊搜尋):memo notes -s "query"

建立筆記

  • 新增筆記:memo notes -a
    • 開啟互動式編輯器來撰寫筆記。
  • 快速新增並指定標題:memo notes -a "Note Title"

編輯筆記

  • 編輯現有筆記:memo notes -e
    • 互動式選擇要編輯的筆記。

刪除筆記

  • 刪除筆記:memo notes -d
    • 互動式選擇要刪除的筆記。

移動筆記

  • 將筆記移動到資料夾:memo notes -m
    • 互動式選擇筆記和目標資料夾。

匯出筆記

  • 匯出為 HTML/Markdown:memo notes -ex
    • 匯出選取的筆記;使用 Mistune 進行 Markdown 處理。

限制

  • 無法編輯包含圖片或附件的筆記。
  • 互動式提示可能需要終端機存取權。

備註

  • 僅限 macOS。
  • 需要能存取 Apple Notes.app。
  • 如需自動化,請在系統設定 > 隱私權與安全性 > 自動化中授予權限。