apple-notes

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Apple Notes CLI

Apple Notes CLI

Use
memo notes
to manage Apple Notes directly from the terminal. Create, view, edit, delete, search, move notes between folders, and export to HTML/Markdown.
Setup
  • Install (Homebrew):
    brew tap antoniorodr/memo && brew install antoniorodr/memo/memo
  • Manual (pip):
    pip install .
    (after cloning the repo)
  • macOS-only; if prompted, grant Automation access to Notes.app.
View Notes
  • List all notes:
    memo notes
  • Filter by folder:
    memo notes -f "Folder Name"
  • Search notes (fuzzy):
    memo notes -s "query"
Create Notes
  • Add a new note:
    memo notes -a
    • Opens an interactive editor to compose the note.
  • Quick add with title:
    memo notes -a "Note Title"
Edit Notes
  • Edit existing note:
    memo notes -e
    • Interactive selection of note to edit.
Delete Notes
  • Delete a note:
    memo notes -d
    • Interactive selection of note to delete.
Move Notes
  • Move note to folder:
    memo notes -m
    • Interactive selection of note and destination folder.
Export Notes
  • Export to HTML/Markdown:
    memo notes -ex
    • Exports selected note; uses Mistune for markdown processing.
Limitations
  • Cannot edit notes containing images or attachments.
  • Interactive prompts may require terminal access.
Notes
  • macOS-only.
  • Requires Apple Notes.app to be accessible.
  • For automation, grant permissions in System Settings > Privacy & Security > Automation.
使用
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。
  • 若要实现自动化,请在「系统设置 > 隐私与安全性 > 自动化」中授予权限。