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

Enable Customizable Confirmation Options with Clear Feedback for Unrecognized Inputs #8

Open
Kiryometsy opened this issue Feb 17, 2025 · 1 comment

Comments

@Kiryometsy
Copy link

Currently, when pacman prompts for confirmation (e.g., when updating or executing commands), it expects the user to input 't' (for "tak" in Polish) to confirm. However, many users (including myself) are accustomed to using 'y' for "yes". When 'y' is entered, pacman treats it as a negative response ('no') and silently skips the action without any warning or notification.

Proposed Solution:

  1. Accept 'y' as a valid affirmative input: Allow the use of 'y' alongside 't' to confirm actions.
  2. Configurability: Introduce a configuration option where users can define which characters are treated as affirmative responses.
  3. Feedback: If an unrecognized confirmation input is entered, provide a clear warning or prompt so the user is aware that the input was not accepted. (maybe prompt again?)

Rationale:

  • User Habits: Many users are used to typing 'y' for confirmation, especially in environments where English is the primary language.
  • Improved UX: Avoiding silent skips will prevent accidental omission of critical updates or commands.
  • Localization: This change would cater to both Polish users and a broader international audience by aligning with common confirmation conventions.
@Kiryometsy Kiryometsy changed the title Support 'y' as an Affirmative Input and Provide Clear Feedback for Unrecognized Confirmation Inputs in Pacman Enable Customizable Confirmation Options with Clear Feedback for Unrecognized Inputs Feb 17, 2025
@vnepogodin
Copy link
Member

Thank you for the suggestion(feature request), but it would be better to be opened in the upstream(if will be accepted there or not)
https://gitlab.archlinux.org/pacman/pacman

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

2 participants