I keep seeing people in the comments mention something called vidir, I hadn't come across that one myself but maybe it'll be a better option. Let me know what you guys think, I'm not big on bulk renaming in the first place so this tool seems to just do the job.
vidir is also perfect for that. you can also delete a file and move it to an other folder entirly, even if the folder dont exists at the moment (will be created as needed)
@@BrodieRobertson I've also used lf for a long time and used vidir (github.com/trapd00r/vidir) for bulk renaming. However, I switched back to vifm for several reasons.
ViMv seems to be not working properly when it comes to names with spaces. It is splitting them in new lines. See if you can find a way to fix that. I've tried quoting the files variable. Apparently it is giving me the names right but I am failing to save the changes afterwards. P.S.: Give ViDir a shot. It's working perfectly. Here are the steps... 1. yay -S vidir 2. VISUAL=nvim (in your .profile/.xprofile) 3. map b $vidir (in your lfrc) 4. Now pressing b will open all the file names(including hidden files) of the directory you are browsing on a vim buffer
For comparison, in vifm you just select files you want to rename using the visual mode (like in vim), then click cw (like in vim), it opens vim with the these filenames, you change and save-quit. Makes much more sense for vim users.
I had wrote a few lines of script in lf config script to add this functionality. It is pretty easy to write one. It had checks if the line count is not changed too. In-case you deleted a line Which by the way is very messy.
Actually, you don't need it. You can use just vim mode in shell. In Bash pressing of "v" in the normal mode opens VIM/NeoVim as your long commands editor. You can do all this there. And when you 'wq' all commands will be executed. Another useful tool is 'rename'. Uses 'sed' syntax including regex for renaming of files via substitution. I also use shell "v" for management of my long git commits. You can do ":r! git status" and then add/remove, stage or unstage your project files.
I think you normally add a link to the program/script, I don't see it. I easily got it though, although a goodle search came up with two on github, but I notice in the vid you use the one by thameera
I keep seeing people in the comments mention something called vidir, I hadn't come across that one myself but maybe it'll be a better option. Let me know what you guys think, I'm not big on bulk renaming in the first place so this tool seems to just do the job.
vidir is also perfect for that. you can also delete a file and move it to an other folder entirly, even if the folder dont exists at the moment (will be created as needed)
It's in moreutils!
www.archlinux.org/packages/community/x86_64/moreutils/
I did not know about more utils, that seems kind of cool
@@BrodieRobertson a vid on it in the future ?
That's a feature vifm has already built in. Even a little bit better, as it also shows the original file names in a split on the right side.
I know that ranger and vifim already have the feature but I'm an lf user and I wanted a way to also do the same thing.
@@BrodieRobertson I've also used lf for a long time and used vidir (github.com/trapd00r/vidir) for bulk renaming. However, I switched back to vifm for several reasons.
In ranger there is :bulkrename for normalizing exotic file names including spaces I use detox.
ViMv seems to be not working properly when it comes to names with spaces. It is splitting them in new lines. See if you can find a way to fix that. I've tried quoting the files variable. Apparently it is giving me the names right but I am failing to save the changes afterwards.
P.S.: Give ViDir a shot. It's working perfectly. Here are the steps...
1. yay -S vidir
2. VISUAL=nvim (in your .profile/.xprofile)
3. map b $vidir (in your lfrc)
4. Now pressing b will open all the file names(including hidden files) of the directory you are browsing on a vim buffer
That's weird it seemed to be working just fine for me
For comparison, in vifm you just select files you want to rename using the visual mode (like in vim), then click cw (like in vim), it opens vim with the these filenames, you change and save-quit. Makes much more sense for vim users.
thanks for info
I had wrote a few lines of script in lf config script to add this functionality. It is pretty easy to write one. It had checks if the line count is not changed too. In-case you deleted a line Which by the way is very messy.
I don't tend to use the functionality to often so I just looked for the simplest solution.
Just a note: It doesn't work if you wanna exchange files' names
I should have tested that
Actually, you don't need it. You can use just vim mode in shell. In Bash pressing of "v" in the normal mode opens VIM/NeoVim as your long commands editor. You can do all this there. And when you 'wq' all commands will be executed.
Another useful tool is 'rename'. Uses 'sed' syntax including regex for renaming of files via substitution.
I also use shell "v" for management of my long git commits. You can do ":r! git status" and then add/remove, stage or unstage your project files.
Your first point doesn't really help if I'm trying to do stuff from lf for example, I might checkout rename though
I think you normally add a link to the program/script, I don't see it. I easily got it though, although a goodle search came up with two on github, but I notice in the vid you use the one by thameera
My bad, thanks for the heads uo
I have to admit.
This screefetch showing up every time you open up a terminal is very annoying to me.
You don't have to use it yourself
Very interesting, I myself use vidir. It does the job well
Vidir seems to be the more popular option
you can pipe names to vimv using xargs. "find . -type f -name foobar | xargs vimv"