Skip to content

Standardize Apple Notes search result format with metadata and preview #5

@vinitu

Description

@vinitu

Problem

Current examples do not define a consistent result format. For agent use, search output should be predictable and include enough metadata to read the correct note later.

Desired behavior

Standardize search output fields:

NAME	CREATED	MODIFIED	ID	MATCHED_TERMS	PREVIEW

Example:

📅 #timeline / Kia Cerato Koup	2019-10-22 13:26	2026-01-09 19:07	x-coredata://057.../ICNote/p101	Kia,Cerato	2017-08-09 - 81857 - замена тормозных колодок...

Implementation notes

  • Include id so follow-up reads can use read-by-id.
  • Include a short PREVIEW, e.g. first 160-240 characters of plaintext with line breaks collapsed.
  • Keep output TSV-friendly.
  • Avoid dumping full note bodies in search results.

Acceptance criteria

  • Search command prints stable columns in a documented order.
  • Preview is short and does not include the full note body.
  • Output remains usable when note title or body contains line breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions