# Polish prompt library UX \(\#12647\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c5b22eee2db31fb59e3a7e052eef0c092821f64f

Requested commit: c5b22eee2db31fb59e3a7e052eef0c092821f64f

Commit: c5b22eee2db31fb59e3a7e052eef0c092821f64f

Tree: 0b914242f1defa4997ddf2800700522582eb941e

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Polish prompt library UX (#12647)

This could still use some improvement UI-wise but the user experience
should be a lot better.

- [x] Show in "Window" application menu
- [x] Load prompt as it's selected in the picker
- [x] Refocus picker on `esc`
- [x] When creating a new prompt, if a new prompt already exists and is
unedited, activate it instead
- [x] Add `/default` command
- [x] Evaluate /commands on prompt insertion
- [x] Autocomplete /commands (but don't evaluate) during prompt editing
- [x] Show token count using the settings model, right-aligned in the
editor
- [x] Picker 
- [x] Sorted alpha
- [x] 2 sublists
    - Default
        - Empty state: Star a prompt to add it to your default prompt
        - Otherwise show prompts with star on hover
    - All
        - Move prompts with star on hover

Release Notes:

- N/A
```

## Parents

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

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