2 hours ago · Tech · 0 comments

After moving to Zed as my primary editor, I’ve slowly been working on replacing various tools and nice to haves from VS Code and trying to solve them in Zed. The biggest thing I was missing was a project specific snippet to generate a new post with front matter for me. I had this and could use this to build my front matter easily, but you can’t really do this with Zed. "Frontmatter": { "scope": "markdown", "prefix": "frontmatter", "body": [ "---", "author: $1", "createdAt: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND.000$CURRENT_TIMEZONE_OFFSET", "modifiedAt: $3", "title: $4", "featured: ${5|false,true|}", "draft: ${6|true,false|}", "tags:", " - $7", "description: $8", "---", ], "description": "Adds the frontmatter block for the AstroPaper Blog post",}, I had originally put together a set of bash scripts to do my releases, but wanted something with some nicer tooling. What’s It Do? mkd allows you to create syntax for your front matter…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.