Astro Editor for Mac
The latest version of Astro Editor for Mac is 1.2.1, released . Markdown editor for Astro content collections.
What's new in Astro Editor 1.2.1
The frontmatter panel now shows your schema's limits on each field, tag fields suggest the tags you've already used, code and MDX are highlighted, and several ways to lose work when syncing with disk are fixed.
Frontmatter panel
Fields show your schema's limits in a footer attached to the field, like 46 / 100 or 1–5, and point out when a value is outside them. Empty required fields have a red edge instead of an asterisk, and the Copy as slug button is now an icon in the title field. See Field Types. (#399)
Show 11 more
Tag suggestions
Tag fields suggest the tags the collection's other entries use. Press ↓ in an empty field to see them all. A tag typed in another case is added in the spelling the collection already uses, so javascript and JavaScript don't drift apart. See Field Types. (#411)
Code and MDX highlighting
Code in a fenced code block is highlighted in its language while your cursor is in the block. In .mdx files, Markdown inside a component is now read properly as Markdown, as MDX renders it, and JSX attributes like date={new Date()} are highlighted. (#412)
Other improvements
- Word count – The Copyedit panel shows the word count and estimated reading time.
- Emoji fields – A frontmatter field or component prop named emoji gets a button that opens the OS emoji picker (macOS only).
- Custom loaders – Collections with custom, inline or third-party loaders attempt to find their content directory from what Astro recorded the last time it ran, and Project Settings names each collection's loader. See Project Settings. (#401)
- Component builder – Its form has been redesigned and now matches the frontmatter panel, and Starlight's icon props show each icon beside its name. (#412)
- Left sidebar – Works better on narrow widths.
Bug fixes
- post.md and post.mdx – With both in a collection, they could overwrite each other. (#399)
- Outside edits – An edit made in another app just after Astro Editor saved could be overwritten.
- Comments in objects – Editing a value inside an object deleted the comments in that object.
- Objects the schema doesn't describe – These are now edited as JSON. Before, typing in one could replace it with text.
- Reopening the open file – Undo history and the cursor position are now kept.
- Switching files – The frontmatter panel no longer flickers.
Source: github.com
How to update Astro Editor on your Mac
- With Homebrew. If you installed Astro Editor with Homebrew, run:
brew upgrade --cask astro-editor - From the developer. Download the latest version from astroeditor.danny.is and install it over the old copy in your Applications folder.
- With Fresh. Fresh lives in your menu bar, spots when Astro Editor and your other apps are out of date, and updates them all in one click. It launches soon.
Astro Editor version history
- 1.2.1
1.2.0
Astro Editor now helps once the first draft is done. A new Copyedit panel checks your spelling, grammar and style, a Git tab commits and pushes what you've written, and editing frontmatter now changes only the field you edited.
If you're upgrading from 1.1
- Deleting a file now moves it to the Trash, without asking, as Finder does. To delete files for good, after a confirmation, turn on Permanently delete files in Preferences. (#392)
- {title} in file name patterns now uses every word of the title. "My Trip to the Lake" used to give trip-lake, and now gives my-trip-to-the-lake. Your existing files keep their names unless you rename them from the pattern. To keep the shorter style, change {title} to {shortSlug} in Project Settings.
- Frontmatter fields now stay in the order you wrote them. Editing a file used to sort them into schema order. To keep doing that, turn on Reorder frontmatter in Project Settings.
Copyedit panel
The right sidebar now has tabs, with Frontmatter on ⌘2 and the new Copyedit panel on ⌘3. Each shortcut opens its tab, or closes the sidebar if that tab is already showing. The part-of-speech highlights now have a dropdown at the top of the panel, as well as their commands in the palette. See Copyediting, Spelling & Grammar. (#381, #383)
Spelling, grammar and style
Switch on Spelling, Grammar and Style in the Copyedit panel, and issues are underlined in the editor and listed in the panel. Hover an underline or click an issue to apply a suggested fix, add the word to your dictionary, or ignore it.
The checks use Harper, which runs entirely on your computer, so nothing you write is sent anywhere. They only check English, and you can choose American, British, Canadian, Australian or Indian English in Preferences. They skip your frontmatter, code, URLs and component tags, and stay quiet about names, acronyms and house-style choices. See Spelling, Grammar and Style. (#265)
Git tab (experimental)
For writers who already use git, the Git tab commits the entry you're working on, with the images and other files it uses, and pushes it without you leaving Astro Editor. It ticks the changed files your entry refers to, and points out images you added and then took out so they don't get left behind. It runs your own git, so your credentials, hooks and signing work as they do in your terminal. Pull only brings in new commits when it can do so cleanly. Branches, merges and conflicts are left to your git tool.
It's off by default. Turn on Git panel in Project Settings, then open the tab with ⌘4. It needs git 2.31 or later, and while it's off, Astro Editor runs no git for that project. See Git and How the Git Tab Works. (#391)
Frontmatter, read like Astro and edited in place
Editing a field now changes only that field. Other fields keep their text and comments, the edited field keeps its quotes, list style and trailing comment, and a new field goes where your schema puts it. Before, one edit rewrote the whole block. (#370)
Frontmatter is also read the way Astro reads it, with a YAML parser set up to match Astro's. This was checked with more than 12,000 edits to 1,900 files from real Astro sites, each read back with Astro's own parser.
Frontmatter that can't be read, like invalid YAML or a field written twice, now shows the error and its line number in the frontmatter panel. You can still edit the body, and saving leaves the frontmatter as it was. Before, the file opened blank and typing in it overwrote the file. See How YAML is Handled. (#388)
File name patterns
Patterns can now use {slug}, {shortSlug}, time tokens like HH, mm and ss, X for timestamp IDs, and {index} or {index:2} for numbered files like 01-welcome.md. Renaming a file from its pattern keeps the time and number already in its name. See File names. (#379)
Source: github.com
1.1.0
This is the biggest release since 1.0.0. Astro Editor now finds your collections from your content config, has a Project Settings window and a project list, can name new files from their titles, and gives you a form for each MDX component's props.
If you're upgrading from 1.0: project settings from 1.0 aren't carried over. The first time you open each project, its old settings file is set aside as ‹project-id>.v2.json in ~/Library/Application Support/is.danny.astroeditor/preferences/projects/ and the project starts with no settings. Most projects won't need any, because collection folders and frontmatter fields are now read from the project itself. None of mine needed setting up again.
Projects are now remembered by their folder, so one you've moved shows as Missing in the project list until you point it at the new folder. See Moved projects.
Collections from your content config
Astro Editor used to assume every collection lived in src/content/‹name>. It now reads each collection's folder and file pattern from its loader, as Astro does. That covers glob() with any base and pattern, Starlight's docsLoader(), and legacy collections. Content outside src/content works, and files your pattern leaves out (like draft.md) are hidden, or shown dimmed if you turn on Show files Astro skips. (#361)
Project Settings
Project and collection settings have moved out of Preferences into their own Project Settings window. It shows what Astro Editor found for each collection: where it lives, which frontmatter fields it uses for the title, date, description and draft, and its schema. Anything it couldn't work out is flagged, such as a missing folder or a schema that needs astro sync, so you only change what it got wrong. Open it with the project's icon at the top of the file list, or Project Settings at the bottom. See Project Settings. (#82)
Project list
⇧⌘O opens a list of every project you've used, with each site's favicon. Search it, switch projects, remove ones you're done with, and point moved ones at their new folder. See Opening a project.
File names from a pattern
Each collection can name new files with a pattern, like {YYYY-MM-DD}-{title} or {title}. A new file is named once you've written its title. There's also a Rename File from Pattern command, and when you change a file's date, a link under the date field renames the file to match. See File names. (#87)
Forms for MDX components
Pick a component with ⌘/ and you get a form for its props, built from their types: text boxes, number fields, switches, dropdowns, date pickers and lists. Image props get an image picker, and props that take a collection entry get an entry picker. It reads props from Astro, React, Vue and Svelte components, and in Starlight projects it offers Starlight's own components too. See The MDX component builder. (#350)
Adding imports (experimental)
An MDX file has to import every component it uses. Turn on Add imports in Project Settings and the builder adds the imports for you (the component's, and any image or collection entry it uses), written the same way your site already writes them. It's off by default. Leave it off if your site uses Astro Auto Import. See Adding imports. (#357)
Saving when you quit
Quitting waits for your work to save, however you quit: ⌘Q, the Dock, logging out or shutting down. If the save fails, it asks before quitting. Closing a file and switching projects save first too. (#364)
Other improvements
- Back where you left off – Opening a project reopens the file you last had open in it, if it still exists. (#373)
Source: github.com
1.0.20
There aren't many visible changes in this release. Most of the work was under the hood, getting the app ready for some bigger features.
Astro Editor now needs macOS 12 (Monterey) or later.
Bug fixes
- Typing could be lost when switching files – Anything typed in the moment before switching to another file could be lost. The app now saves before it switches.
- Dates showed a day early – West of UTC, the file list could show the day before the date in your frontmatter. It now shows the date as written.
- Dates could be misread – Some non-US setups showed 5 Oct as 10/5. The date picker and file list now always use a month name ("5 Oct 2026"). (#328)
- Remote image previews – Image previews now load for https:// URLs.
- Silent image errors – If adding an image to an image field fails, you now get an error message instead of nothing happening.
- Dark mode – Fixed the image preview, snippet borders, unfocused window buttons and the editor's lighter text. Context menus and system dialogs now follow the app's theme.
- Smaller fixes – The active Drafts and filter buttons no longer turn dark on hover, placeholder text is the right colour, and the recovery message only says your work was saved once it actually has been.
Under the hood
The app's tooling has moved to newer, faster tools, the interface components have been rebuilt on a new library, and every colour now comes from one set of theme colours. None of this should look different, but it makes the upcoming work on forms and project settings much easier. Logs now rotate instead of being wiped when they fill up, and more errors actually reach them, so bug reports should be easier to look into. Frontmatter fields are also now properly labelled for screen readers.
Source: github.com
1.0.18
No significant user-facing changes.
- Astro 7 support – Projects on Astro 7 are now tested and fully supported, alongside Astro 5 and 6.
- Fixed nullable fields showing as text inputs – Newer versions of Zod (used by Astro 7, and by fresh Astro 6 installs) describe optional fields like z.number().nullish() differently, which caused nullable number and boolean fields to appear as plain text inputs. They now show as number inputs and toggles again.
- Upgraded dependencies.
Source: github.com
1.0.17
Fix minor bug where links in release notes would open in the App Window instead of an external browser when clicked in the auto-updater panel.
Source: github.com
Details
- Latest version
- 1.2.1
- Released
- Last checked
- Website
- astroeditor.danny.is
- Homebrew cask
- astro-editor