-
Notifications
You must be signed in to change notification settings - Fork 245
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
🦀 allow exiting out of search mode with Ctrl-C
#768
🦀 allow exiting out of search mode with Ctrl-C
#768
Conversation
Ctrl C must be used only for exiting the application. Ctrl C is generally used when the application is misbehaving. I am against this change |
why? |
vim, nano, helix, mysql, midnight commander, cmus, fzf just off the top of my head. those tools utilize Ctrl C for their functionality. Ctrl C is not generally used when the application is misbehaving. That's Ctrl D. I'm sorry but you're wrong here. |
... |
its an exit command like the rest in linutil e.g. q esc, by your logic we should limit q & esc down to exiting linutil as well |
No they are generally used for exiting for example closing other parts of an application also. But Ctrl c is more specific it is only used to close when the app is not responding, etc... |
i got more: more, less, man, tldr, gitui, bmon |
Have you ever used an app that provides Ctrl c to close menus or exit search ? |
That's not true. Do you even use TUI tools? Just look at vim. |
Yes. linutil (here), vi, vim, nvim, helix, nano, more, less, fzf, i don't even want to type anymore |
htop, btop, top they use them to exit their application not exit the search. Vi, vim, nvim does the opposite they close with q instead and to force quit ctrl c is used ( if configured ). More, less also don't give the functionality to exit the search with ctrl c |
Oh yeah, sorry was wrong on this one.
No. Do you know how to use search in vi?
if configured...
2024-10-05_19-34-53.mp4 |
Yeah I mentioned if configured !! to map the CTRL C to exit the application. And still all the other applications you mentioned are wrong. This does not improve the UX. It makes it harder for the user to exit from the application |
This is not configured !! ctrl c aborts search in vi by default |
Am i not clear ?? If configured it can be used to exit the application with CTRL C |
I find myself very frustrated having to use
Ctrl C does not exit linutil when in search mode. Test it. |
This video proves bad UX. You can't argue with that. 2024-10-05_19-46-09.mp4 |
Users would want to use CTRL C to exit the application rather than aborting the search in case linutil needs to be force quit. Most of the applications except vi does that out of the box. |
Do you need more examples?
And, by the way, CTRL C does not forcequit linutil. It calls the exit function. |
If an application "needs to be force quit", such as if it's hung or otherwise impossible to exit properly, you can send a SIGKILL with |
Type of Change
Description
Added an option to abort the search with
Ctrl-C
and fixed up the shortcut tooltip a bit.Testing
Works perfectly.
Checklist