pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

Confirm reading Arch news

Open mattia-b89 opened this issue 3 years ago • 5 comments

$ pikaur -Vq
Pikaur v1.9
Pacman v6.0.1 - libalpm v13.0.1 - pyalpm v0.10.6
Description:

I had updated a system with very old packages, that's many (almost all) of them have been upgraded, resulting in a very long list, before proceed with the upgrade.

This led me to missing the Arch news, just because terminal automatically scroll down...

I'd like to have a discussion about this issue: for example, adding a confirmation message e.g. "Press Enter to continue" message would be enough IMO or another solution could be placing Arch news at the bottom of the package list

mattia-b89 avatar Dec 30 '21 17:12 mattia-b89

adding a confirmation message e.g. "Press Enter to continue" message would be enough IMO

such prompt also would require thinking of default choice for both manual and --noconfirm modes

actionless avatar Dec 30 '21 18:12 actionless

I think:

  • with --noconfirm it skips the prompt, that's no changes compared with today's behaviour
  • for manual there isn't a default choice because there is no choice; it is different to edit (Y/n) question, where user is able to edit or not to edit. Here the user can go only "forward" by acknowledging the presence of news

mattia-b89 avatar Dec 30 '21 19:12 mattia-b89

with --noconfirm it skips the prompt, that's no changes compared with today's behaviour

in this case should the news be marked as read (as now) or not?

actionless avatar Dec 30 '21 20:12 actionless

Good point! In this case, there is no true objective/definitive action: --no-confirm means no user interactions, so it skips the prompt; but the point is: next time should we show the former news again?

I think no, the news should be marked as read, because:

  1. news is anyway shown (the prompt just helps you to not miss it), so user can always read it
  2. --no-confirm is a voluntary option, so user is aware

mattia-b89 avatar Dec 30 '21 20:12 mattia-b89

i've got a nice idea for UI finally:

There is news from archlinux.org!
<Some news goes here>

:: AUR package will be installed:
 pikaur-git                            1.18.3.r13.g70000af-1  -> 1.18.4-1

:: Proceed with installation? [Y/n]
:: [v]iew package details   [m]anually select packages
:: [c]onfirm Arch news read
>> 

and in --noconfirm mode news would just remain unread

actionless avatar Feb 09 '24 10:02 actionless