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: Ask user to perform rename on dry run. #37

Open
RayPS opened this issue May 31, 2024 · 1 comment
Open

Feature Request: Ask user to perform rename on dry run. #37

RayPS opened this issue May 31, 2024 · 1 comment

Comments

@RayPS
Copy link

RayPS commented May 31, 2024

Can we ask user to perform rename after a dry run?

$ brename -d -p 386 -r amd64
Searching for paths to rename...

  [OK] brename_linux_386.tar.gz -> brename_linux_amd64.tar.gz
  [OK] brename_windows_386.exe.tar.gz -> brename_windows_amd64.exe.tar.gz

2 path(s) to be renamed, perform rename? [y/N]:

Hit y to rename, n is default so hit enter to dismiss.
So we don't have to re-run another brename command again.

Actually, I think a rename preview like this before renaming should be a default behaviour,
and can be muted with something like -q,--quiet flag.

@shenwei356
Copy link
Owner

try https://github.com/ayoisaiah/f2 , it acts like that.

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