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

Feature request: prompt-list + cli-table #5

Open
slevey087 opened this issue Jan 24, 2018 · 2 comments
Open

Feature request: prompt-list + cli-table #5

slevey087 opened this issue Jan 24, 2018 · 2 comments

Comments

@slevey087
Copy link

Hi there. Finding I would really like if there were a way to combine the selection mechanism of prompt-list with the display layout of something like cli-table (see the image at https://www.npmjs.com/package/cli-table). So, pressing up and down would highlight different items in the table. Not sure if there would be a way to work that in to prompt-list, or if it would have to be a separate package.

Thanks!

@doowb
Copy link
Member

doowb commented Jan 24, 2018

@slevey087 prompt-grid is similar to what you're looking for but it differs in that the actions taken on the grid move the items around in the specified list.

We've talked about making it easier to override rendering the output and this would be a good use case for that feature. Right now, there are a few methods that you would be able to override to render the list as a cli-table, but I don't remember off the top of my head exactly what needs to be done.

If you think of anything please post back here. I'll do the same if I get some time to try this out.

@jonschlinkert
Copy link
Member

Perhaps we could do prompt-table? I like this idea. I think we could allow the individual cells to be editable as well.

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

No branches or pull requests

3 participants