winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Skip downloaded package by pressing ESC key

Open birbilis opened this issue 3 years ago • 1 comments

Description of the new feature / enhancement

Sometimes you may decide that a huge package that's being downloaded during an upgrade -all action isn't worth the wait and you may want to skip to next package.

This is especially useful when you have issues with winget trying to reinstall multiple big already up-to-date packages and you don't want to add exclusions (assuming you can) for each one of those (hoping eventually WinGet will fix those issues)

Of course this is for scenaria where you use winget interactively

Proposed technical implementation details

Should detect ESC key or some other key combination that the average user would expect to cancel a download and skip to next (if multiple are queued). In case of multiple parallel downloads (not sure such functionality is currently available) it would cancel all active ones (assuming the progress of all was being displayed to the user)

birbilis avatar Oct 23 '22 15:10 birbilis

Ctrl-C will cancel any downloads

Masamune3210 avatar Oct 23 '22 17:10 Masamune3210