# Astro Editor

一款专注写作的 Astro 内容集合 Markdown 编辑器，提供基于 schema 的 frontmatter 表单，以及处理 MDX 组件和图像的工具。

> 这是 OpenNavo 上 Astro Editor 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/astro-editor>

- **最新版本**: `1.2.1`
- **开发者**: Danny Smith
- **主页**: <https://astroeditor.danny.is/>
- **分类**: [写作与笔记](https://opennavo.com/zh/categories/writing)
- **安装**: `brew install --cask astro-editor`
- **近 30 天安装**: 51
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://github.com/dannysmith/astro-editor/releases/download/v1.2.1/Astro.Editor_1.2.1_universal.dmg>
- **SHA-256**: `c4a4dba869a5df1a383f264d7cc16cd6e18b80a3414e0aad3555f13a05ed3aeb`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "Astro Editor.app"
      ],
      "target": "/Applications/Astro Editor.app"
    },
    "phase": "install",
    "sources": [
      "Astro Editor.app"
    ],
    "target": "/Applications/Astro Editor.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/is.danny.astroeditor",
            "~/Library/Caches/is.danny.astroeditor",
            "~/Library/Logs/is.danny.astroeditor",
            "~/Library/WebKit/is.danny.astroeditor"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Astro Editor 是一款 Markdown 编辑器，用于编写和管理 Astro 内容集合中的本地 Markdown 与 MDX 文件。它会读取项目的 `content.config.ts` 和集合 schema，以显示相关内容字段及写作工具。它面向写作，而非代码编辑。

- 根据集合 schema 生成 frontmatter 控件，包括日期、枚举、标签、布尔值和嵌套对象等字段的输入项。图像字段可显示预览，`reference()` 字段则以集合下拉列表呈现。
- 提供专注模式和打字机模式，以及全局命令面板和键盘导航。
- 支持插入项目中的 MDX 组件；拖入图像时，会将其复制到相应的资源文件夹并插入 Markdown。
- 提供集合筛选与排序、草稿视图，以及用颜色标示词性的校对模式。

使用 `brew install --cask astro-editor` 安装 Homebrew cask，然后打开 Astro Editor，处理 Astro 项目中的本地内容文件。此 cask 安装 macOS 应用；该软件也提供 Windows 和 Linux 版本。官方网站注明 Linux 版本仍处于 beta 阶段，Homebrew cask 的 Linux 安装包适用于 `amd64`。

来源：[官方网站](https://astroeditor.danny.is/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/a/astro-editor.rb)

## 系统要求

- macOS 12 起 · 应用版本: 1.2.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 核查于 2026-12-02
  - <https://github.com/dannysmith/astro-editor/releases/download/v1.2.1/Astro.Editor_1.2.1_universal.dmg>
  - SHA-256: `c4a4dba869a5df1a383f264d7cc16cd6e18b80a3414e0aad3555f13a05ed3aeb`
- macOS 12 起 · 应用版本: 1.2.1 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 核查于 2026-12-02
  - <https://github.com/dannysmith/astro-editor/releases/download/v1.2.1/Astro.Editor_1.2.1_universal.dmg>
  - SHA-256: `c4a4dba869a5df1a383f264d7cc16cd6e18b80a3414e0aad3555f13a05ed3aeb`

## 价格

- 免费 — 官网: <https://astroeditor.danny.is/> · <https://astroeditor.danny.is/> · 核查于 2026-10-25

## Astro Editor 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/dannysmith/astro-editor> · 是否开源: 是 — <https://github.com/dannysmith/astro-editor> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask astro-editor`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask astro-editor`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Support/is.danny.astroeditor` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/is.danny.astroeditor` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Logs/is.danny.astroeditor` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/WebKit/is.danny.astroeditor` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 1.2.1-test.1-prerelease (2026-11-25)

A test build of `main` at eec7164a, for testing before 1.2.1. It's built and signed like a real release, but isn't one.

Installing it replaces your copy of Astro Editor and uses your normal settings. When the next stable release comes out, it'll offer to update you to it.

#### New

- Tag fields suggest tags the collection already uses, most-used first.
- The Copyedit panel shows the word count and reading time.
- In fenced code blocks, the code is highlighted in the block your cursor is in.
- In `.mdx` files, Markdown inside components is read as Markdown, and JSX attributes are highlighted.
- Fields named `emoji` get a button that opens the macOS emoji picker.
- Frontmatter fields show their schema limits (length, ranges and so on) below them, with out-of-range values in amber. Empty required fields are marked.
- Collections with custom, inline or third-party loaders now find their files through Astro's data store. Project Settings shows which loader each collection uses.

#### Improved

- The component builder matches the frontmatter panel, and it shows Starlight's icons in its icon lists.
- The left sidebar fits narrow widths.
- The frontmatter panel no longer flickers when you switch files.

#### Fixed

- Several ways to lose work when syncing with disk:
  - `post.md` and `post.mdx` overwriting each other
  - an outside edit made just after a save being overwritten
  - editing a nested value deleting comments in that object
- Undo and the cursor position are kept when you reopen the file you already have open.

## 资料与来源

- <https://opennavo.com/zh/apps/astro-editor>
- <https://opennavo.com/zh/apps/astro-editor/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/astro-editor.rb> · 核查于 2026-12-02
- <https://formulae.brew.sh/cask/astro-editor>
- <https://astroeditor.danny.is/> · 核查于 2026-10-25
- <https://github.com/dannysmith/astro-editor> · 核查于 2026-11-13
