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

Feature Request: Deselect All in interactive mode #1202

Closed
3 tasks done
limonte opened this issue Oct 9, 2022 · 5 comments
Closed
3 tasks done

Feature Request: Deselect All in interactive mode #1202

limonte opened this issue Oct 9, 2022 · 5 comments
Labels

Comments

@limonte
Copy link

limonte commented Oct 9, 2022

  • I have searched for similar issues
  • I am using the latest version of npm-check-updates
  • I am using node >= 14

It'd be great to be able to quickly deselect all upgradable deps in the interactive mode (ncu -i). In many cases I want to upgrade only a small subset of dependencies and ignore everything else.

The whole list might be quite long, so ATM I have to press arrow down + space quite many times to deselect all manually.

Thanks for the amazing project 🙏

@raineorshine
Copy link
Owner

raineorshine commented Oct 9, 2022

You can press a repeatedly in interactive mode to select or deselect all.

This was conspicuously missing from the instructions that are shown in interactive mode. I updated the instructions and published to v16.3.10 so this is clearer now.

@limonte
Copy link
Author

limonte commented Oct 9, 2022

Thank you so much, I missed this shortcut. Now people like me would be able to find this answer here: https://github.com/raineorshine/npm-check-updates/search?q=Deselect+All&type=issues

IMO this shortcut is important enough to be here:

CleanShot 2022-10-09 at 17 43 16@2x

- Choose which packages to update › Space to deselect. Enter to upgrade.
+ Choose which packages to update › Space to deselect. Enter to upgrade. [A] to toggle all.

@raineorshine
Copy link
Owner

Ah, yes. Those are the short instructions. There are longer instructions available with --format group. Maybe you are right though, as it is a time saver.

@raineorshine
Copy link
Owner

I decided to unify the interactive instructions so they are the same regardless of --format.

Published in v16.3.11.

% ncu -i
Upgrading /Users/raine/projects/ncu-issues/template/package.json
[====================] 2/2 100%

? Choose which packages to update ›
  ↑/↓: Select a package
  Space: Toggle selection
  a: Toggle all
  Enter: Upgrade

❯ ◉ ncu-test-tag   1.0.0  →   1.1.0
  ◉ ncu-test-v2   ^1.0.0  →  ^2.0.0

@limonte
Copy link
Author

limonte commented Oct 9, 2022

Amazing! You are a fantastic OSS maintainer! 💪 💪 💪

@limonte limonte closed this as completed Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants