# Improve storybook story selection \(\#3653\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fd133df896fa465e307052c7d28b62fcc50bd3a2

Requested commit: fd133df896fa465e307052c7d28b62fcc50bd3a2

Commit: fd133df896fa465e307052c7d28b62fcc50bd3a2

Tree: 857f2cc69a8cd64bee3b87c91a8e1f046fb0f1e3

Author: Marshall Bowers

Committer: GitHub

## Message

````
Improve storybook story selection (#3653)

This PR builds on top of #3652 by adding a selection prompt to the
storybook to allow you to choose from the available list of stories if
you don't provide one explicitly:

<img width="1387" alt="Screenshot 2023-12-14 at 12 00 26 PM"
src="https://github.com/zed-industries/zed/assets/1486634/640d62a3-1340-45f1-9746-69b513faff62">

This way we don't have to keep generating the `script/storybook` script
whenever stories are added/removed.

#### Usage (through `cargo`):

```sh
# Select from the available stories
cargo run -p storybook2

# Run a specific story
cargo run -p storybook2 -- components/list_item
```

#### Usage (through `script/storybook`):

```sh
# Select from the available stories
./script/storybook

# Run a specific story
./script/storybook list_item
```

Release Notes:

- N/A
````

## Parents

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

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