-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add [Y/n] to all confirmation messages #2097
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 [Y/n] to all confirmation messages #2097
Conversation
|
I'm thinking we do the opposite: remove 'y' and stick to just enter/escape. That way there'll be less confusion when there's a menu that has a 'y' or 'n' keybinding against one of the options |
Maybe the confirmation menu should only ever have Also denoting |
I'm not sure what you mean here. To clarify I meant that a user who's used to using y/n on confirmation panels might think that you could use y to select a menu item and if y is actually tied to a particular menu item that's not currently selected, that could be confusing. |
|
At any rate @mark2185 do you reckon it's okay to say that y/n is allowed on confirmation prompts but in a menu you need to use enter to select an item and 'y' is allowed to be used as a keybinding for a specific menu item? I'd be okay with that. |
Yup, hit the nail on the head. I may have fumbled a bit with the all the confirmation and menu panels and whatnot panels, that's what I had in mind. In short, I'm trying to say that I think the confirmation panels (the ones that are like Clippy asking you "Are you sure you want to quit?") should only have a handful of possible (but configurable) mappings:
|
|
I've gone back and re-read the ticket and I'm thinking that we should actually not include the keys in the message itself. Rather, we should always phrase the confirmation as a question (e.g. 'would you like to force push?'), and we should always have the 'yes' answer mapped to the 'enter' key with the 'no' answer mapped to the 'esc' key. Then we can display the keys for doing things at the bottom left of the screen (as we currently do now). My reasoning is that it's not hard to see what you need to do the first time and then you can use the muscle memory for all future times. This approach also allows for easier changes to keybindings down the line. As for y/n, when we consider the above approach, the question is whether we want a second set of keybindings that do the exact same thing as enter/esc. Given 'n' apparently doesn't work, and given that 'y' isn't really advertised as being an available key, I'm back to thinking we should drop 'y'. Lemme know your thoughts @mark2185 |
|
After thinking about it even more I think we should have the y/n keybinding for the confirmation panel but still only mention that we have that keybinding in the options view when the confirmation panel is shown |
What do you mean by |
|
I.e. the blue text at the bottom left of the screen |
|
I miss when I could click |
|
We've decided that there is no need for multiple ways to confirm since they do the same thing. How do you decide when you'd use |
|
I use |
|
Wouldn't remapping Unless |
It does. keybinding:
universal:
confirm: 'y' |
|
As it stands I don't think it's worth reintroducing the key binding. The enter key is a fairly universal way of confirming something. That said I'm happy to leave this issue open and see if enough other people want a way to get the old key binding back (please thumbs up the OP to signify that you want the change) |
|
Just realized I'm commenting on a PR haha. WELL, my point still stands: feel free to raise an issue for this and see if other people agree |
Inspired by #1111.
Adding
nas an actual option for cancelling the prompt isTODO.