ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
205 stars 15 forks source link

Prettier Init Prompts #173

Closed ZeroIntensity closed 4 months ago

ZeroIntensity commented 4 months ago

Description:

The view init command uses Click for prompts (as seen here), but I don't really like how they look (especially for options with a set number of responses, e.g. the loaders).

It would be nice if you could use arrow keys or keyboard and mouse for choosing an option, such as with create-next-app. I'm thinking that an inline Textual app could be used, but shipping the entirety of Textual just for a small improvement like that seems like a bad idea. If someone knows a better library for this, I would be happy to hear it.

Example API

$ view init
Choose Loader Strategy (Use arrow keys)
- Manual
> Simple (Recommended)
- Filesystem
- Django-like Patterns
ZeroIntensity commented 4 months ago

I'm going to write a separate library for prompts!