-
-
Notifications
You must be signed in to change notification settings - Fork 37
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] Add an option that allows passing a list of files as argument #12
Comments
@nightson Would specifying the each file name in the regular expression not achieve what you want?
|
That would work if you only need to rename a few files. If F2 supports file lists it could be easily integrated with other tools like Candy (an AHK script). |
Thanks for the clarification @nightson , I will add this feature very soon |
Cool! Kudos to your hard work! |
@nightson Here's how it currently works: You create a CSV file like this (the second column is optional)
And pass it to the
You can still use the |
Cool! Could you also add an option that allows passing the paths directly in the command line? |
@nightson How do you mean? |
Something like this |
You can do that already. Add the paths after all options
|
Sorry I didn't make myself clear. I meant the paths to the files to rename. F2 only supports directory paths to search for currently if I'm not mistaken. Like this: |
@nightson Ok I understand now. I've adapted the code so that it works with both directories and file paths, so you can use either or both. $ f2 -f -r path1 path/2/file.txt path3 |
Cool. That's an even better implementation! Thank you! |
@nightson Please upgrade to the latest release: https://github.com/ayoisaiah/f2/releases/tag/v1.7.0 |
Works like a charm. Thank you! |
In some cases we need to batch rename some files which don't share any similarities in the file names. It would be a pain in the ass to write a RE to match all of them at the same time. It f2 could take a list of files (directly in the command line or as a list file ) as argument, it would be much easier. Thanks!
The text was updated successfully, but these errors were encountered: