-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add ~reckless~ recover mode #143
Conversation
Pressing an invalid key will take you to the "reckless" mode. All you need to do is calm down, escape that mode, and try again. Closes: #142
To expand on the second point, I think in general keeping a stack of modes could be useful. For example, when you enter sort menu, you can press When entering filter menu, then pressing And now with reckless mode, whether you are in sort or filter mode, pressing a wrong key will drop you to default mode... And final point: once I pressed wrong key at least once, I will see the log warning forever. Have you considered to clear that warning at some point? Especially in this scenario:
In addition to not re-showing the warning once text prompt was shown, I would also maybe consider hiding the log on such events:
If I want to see the logs, I can always do Sorry if I went too much offtopic here 😁 |
Really appreciate for the detailed feedback. I agree with most of the points. As for the hiding logs, I also though it'd be a good idea, but I refrained from doing it expecting someone to complain about it, because it's a trade-off - do you want to see all the logs? Or you prefer a clean UI and only the most relevant info even at the cost of missing potential critical info like an error log. But yes, I agree seeing the old log after the input field disappears is really confusing and should not be shown. However, hiding the log by -
In 52fbaef I started showing logs in |
Also stay in create mode after creating files and directories.
Another possibly useful feature: |
I don't think this is necessary because we can use |
Updated the PR to with the hide logs logic and persistent filters. |
TODO transition from reckless to prev mode. |
Done with |
a1c174e
to
38372ba
Compare
This change requires manual `Refresh` after mode switches. Also, fix the rename operation.
38372ba
to
ecc14f0
Compare
Also, improve the warning message.
4abe71a
to
a7ba825
Compare
a7ba825
to
3230897
Compare
The input poll timeout needs to stay low, else xplr will panic when you spawn a subshell and start typing immediately. From the `top` command, it didn't show any noticeable overhead.
I think this is good enough. Let's try it out. |
Looking good 🙂 |
Pressing an invalid key will take you to the
recklessrecover mode. All youneed to do is calm down, escape that mode, and try again.
Closes: #142