-
-
Notifications
You must be signed in to change notification settings - Fork 764
batch rename find/fd files #1214
New issue
Have a question about 8000 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
Comments
Press |
That's good for an individual file. But if there are hundreds of files from different folders, rename them one by one is tedious. Use find to filter the list and batch rename accordingly is more practical I think. |
While it's a regular use case for you, implementing it is roundabout - we have to find each target, add to a new buffer and then rename. Sorry, there is no ROI for us here. |
Thanks anyway! |
@ixzh this use-case maybe better solved by some dedicated batch-ranamer script/program. There are quite a lot out there, although I haven't used any. |
you mean in the plugin listing? Or where can I find? I'm using the default scripts/.nmv. |
No, independent ones.
You can try searching for "batch renamer" in github. As I've said, I don't use any so I can't recommend one. |
Ok, thank you! I will try to figure out a way. |
On second thoughts, @KlzXS do you think we can extend the batchrename script to rename the files in the current directory but apply to the symlink targets? We can see if we can figure a way to indicate to the script if this is a case of a listed directory. |
If someone else wants to give it a try, we will need to rename the target for the symlink in plugin The main program can set an env var before calling |
We can do that. Make |
|
Please test with commit eb769c0 as I have made a minor modification. |
Thank you for the workout!! I have tested the following, and the files are missing after renaming their symbolic links in list mode: I also tried So are the files removed from disk by doing the above? I can't locate them in my system. Another issue: |
By default it downloads a zip that goes with the version of nnn. To download from master run it as |
I see. I'll amend my plugin command. Thanks! |
I can see where the problem is. For now use it only with selection. |
@KlzXS can you please take a look? |
See #1232. I hope this ends the whole saga. |
thank you! it works. |
Is your feature request related to a problem? Please describe.
fd pdf ~/Downloads -0 | nnn
can be used to show and open files, but batch renamer
doesn't work.Describe the solution you'd like
Would it be possible to make
r
operate on symlink list to rename target files? seems to be a natural extension of ther
function.The text was updated successfully, but these errors were encountered: