# Rework prompt frontmatter \(\#12262\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/800c1ba91663ea7a810e8e8755b357f5e3b55a2f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 800c1ba91663ea7a810e8e8755b357f5e3b55a2f

Requested commit: 800c1ba91663ea7a810e8e8755b357f5e3b55a2f

Commit: 800c1ba91663ea7a810e8e8755b357f5e3b55a2f

Tree: 85842217b33d396fa7f3c6ac9aea3d4299b8fc5f

Author: Nate Butler

Committer: GitHub

## Message

```
Rework prompt frontmatter (#12262)

Moved some things around so prompts now always have front-matter to
return, either by creating a prompt with default front-matter, or
bailing earlier on importing the prompt to the library.

In the future we'll improve visibility of malformed prompts in the
`prompts` folder in the prompt manager UI.

Fixes:

- Prompts inserted with the `/prompt` command now only include their
body, not the entire file including metadata.
- Prompts with an invalid title will now show "Untitled prompt" instead
of an empty line.

Release Notes:

- N/A
```

## Parents

- [461e7d00a64700e445059f1182380f3db678a5c0](https://git.cafe/gitcafe/zed/commit/461e7d00a64700e445059f1182380f3db678a5c0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/800c1ba91663ea7a810e8e8755b357f5e3b55a2f?format=markdown)
