Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI argument to open storybook to a specific story #7664

Open
elevatebart opened this issue Aug 2, 2019 · 9 comments
Open

CLI argument to open storybook to a specific story #7664

elevatebart opened this issue Aug 2, 2019 · 9 comments

Comments

@elevatebart
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am frustrated when I have to search for the story I am looking for among the 1000 stories my storybook has.

Describe the solution you'd like
A CLI argument that would allow the storybook command to open to an existing story.

Describe alternatives you've considered
We could instead filter stories that open. We would not have to search

Are you able to assist bring the feature to reality?
I can cook up a pull request but it might take time

Additional context
What would be even better would be integration with IDEs and code editors (VSCode, Atom, WebStrorm)?

@elevatebart
Copy link
Contributor Author

@mdvorscak this was your idea, credit is due where credit is due ;)

@elevatebart
Copy link
Contributor Author

@shilman Do you think there are enough details to start a discussion? To start coding.

@shilman
Copy link
Member

shilman commented Aug 2, 2019

This sounds reasonable. How do you expect users to run it? Like this:

yarn storybook --story my-button--basic

Or is it more of a utility for integrating with other tools?

Related #6201 #5065 #5855

@elevatebart
Copy link
Contributor Author

I was thinking of exactly this, to start with.
This would probably allow external tools to interact efficiently with the parameter
Because the story names can be lengthy, next step would be to allow to specify only part of the name. Think of it like in jest:
instead of

yarn storybook --story my-button--basic

we would be allowed to write

yarn storybook --story button--bas

... typing is hard and I am lazy ;)

@stale stale bot added the inactive label Aug 23, 2019
@stale stale bot closed this as completed Sep 23, 2019
@elevatebart elevatebart reopened this Sep 23, 2019
@stale stale bot removed the inactive label Sep 23, 2019
@github-actions
Copy link
Contributor

Automention: Hey @Keraito, you've been tagged! Can you give a hand here?

@storybookjs storybookjs deleted a comment from stale bot Sep 23, 2019
@storybookjs storybookjs deleted a comment from stale bot Sep 23, 2019
@shilman shilman added the todo label Sep 23, 2019
@fabiomartins87
Copy link

I would like to help on this. I am not familiarized with the codebase...could you just give me a tip on where to start?

@cliffpyles
Copy link

@fabiomartins87 Did you decide to take a shot at this one? Or is this one up for grabs?

@azinit
Copy link

azinit commented Oct 25, 2022

Still actual! :(

@shilman shilman removed the todo label Jun 20, 2023
@ygkn
Copy link
Contributor

ygkn commented Jul 8, 2023

Hi. I created VS Code extension for opening Storybook from editor. I hope it helps you.

Storybook Opener - Visual Studio Marketplace

GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants