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

Navigation to previous commands. #7

Closed
lucky-chap opened this issue Jun 15, 2022 · 5 comments
Closed

Navigation to previous commands. #7

lucky-chap opened this issue Jun 15, 2022 · 5 comments

Comments

@lucky-chap
Copy link

lucky-chap commented Jun 15, 2022

Whenever a user navigates to a command with sub-commands, there's nothing to tell the user to press the Escape key to go back. I think showing some sort of help message can make the user navigate back from deep sub-commands, without trying to figure out which key to press. This is a huge problem on mobile phones

@albingroen
Copy link
Owner

Hi Quavo, I understand your problem and I will try to think of a good solution. For now though, maybe you can just render a back option, like this?
image

@dragonfire1119
Copy link

dragonfire1119 commented Jun 24, 2022

@albingroen Could you utilize delete or backspace, as raycast does?

They also include a "back" button:

Raycast back button

@albingroen
Copy link
Owner

You can also use the footer property on the root component to show something like this.

image

@Semmu
Copy link

Semmu commented Jun 26, 2022

Just found this lib and wanted to say the same: going up a level via backspace would be really useful to implement.

@albingroen
Copy link
Owner

This PR adds support for hitting Backspace to move up a page (runs the onEscape if specified)
#8

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

4 participants