# Add an app_menu to Storybook which enables quitting with \`cmd-q\` \(\#8166\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ba6b3190463d3a2476f1eea33ba0bd68bfb125f2

Requested commit: ba6b3190463d3a2476f1eea33ba0bd68bfb125f2

Commit: ba6b3190463d3a2476f1eea33ba0bd68bfb125f2

Tree: dbb913cda60def7ebbe4de73a0d4fa2356624da0

Author: Michael Angerman

Committer: GitHub

## Message

```
Add an app_menu to Storybook which enables quitting with `cmd-q` (#8166)

I really think storybook is a cool standalone app but there are some
usability issues that are getting in the way of making this a fun tool
to use.

Currently it is not easy to gracefully exit out of storybook.

In fact even trying to Ctrl-c out of storybook seems currently broken to
me...

So the only real way to exit out of storybook is to kill the process
after a Ctrl-z.

This PR attempts to make this much easier by adding a simple app_menu
with a menu item called quit along with the ability to *Cmd-q* out of
storybook as well...

Both the menu item quit and *Cmd-q* gracefully exit storybook.

There are still a bunch of issues with storybook which I plan on
addressing in future PR's but this is a start and something that to me
is the highest priority to make storybook more functional and easy to
use moving forward.

One of my longer term goals of storybook is to have it be a nice stand
alone application similar to
[Loungy](https://github.com/MatthiasGrandl/Loungy) which can be used as
a nice tutorial application for how to develop a real world *gpui* app.

For that reason I added a *assets/keymaps/storybook.json* file as well.
```

## Parents

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

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