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] Allow users to return to previous step. #39

Open
alexzhang1030 opened this issue Feb 15, 2023 · 2 comments
Open

[Feature Request] Allow users to return to previous step. #39

alexzhang1030 opened this issue Feb 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@alexzhang1030
Copy link
Contributor

I think this is a good feature in some scences.

@alexzhang1030 alexzhang1030 added the enhancement New feature or request label Feb 15, 2023
@alexzhang1030 alexzhang1030 changed the title [Feature Request] Allow users to turn to previous step. [Feature Request] Allow users to return to previous step. Feb 15, 2023
@ulken
Copy link
Collaborator

ulken commented Feb 18, 2023

I'm not sure how this would work since each prompt is detached from the rest. Once a prompt has finalized, the library has no reference to it any longer.

One plausible way would be via the group utility. Maybe we can pass hooks to each prompt initializer to go back and forward in history within the group. There we would could potentially store references to each prompt and provide a mechanism for them to clear themselves.

Thoughts @natemoo-re?

@fvsch
Copy link

fvsch commented Apr 25, 2023

I was trying the clack demo on https://www.clack.cc/ and was surprised I could not go back to a previous step to fix a mistake.

I guess the more the UX feels like a form, the more you expect form-like behavior. (For instance, my first intuition was to use Shift+Tab to “tab back” to the previous input.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Needs triage
Development

No branches or pull requests

3 participants