5 ms·
I do not use a terminal based file manager - I find that a better workflow for me is to use sshfs to create a local mount on my laptop and then just use the Fin
by rsync 8y ago
I do not use a terminal based file manager - I find that a better workflow for me is to use sshfs to create a local mount on my laptop and then just use the Finder to browse ... which gives me preview, etc.
HOWEVER, there is a specific use-case - renaming a bunch of files in a directory - where I do use a "file manager" and that file manager is 'vimv'.[1]
vimv is a very simple tool - you run vimv in a directory and suddenly the vi editor opens up with the contents of that directory. You then use the vi editor to edit the filenames any way you like. Upon :wq, the files in that directory are renamed.
Very useful - and in many cases, much faster than crafting a sed/awk one liner to do the renaming (especially if some of the renaming is arbitrary or random).
[1] https://github.com/thameera/vimv https://github.com/thameera/vimv
- apjana 8y ago`nnn` integrates `vidir` for batch renaming.
- philsnow 8y agoObligatory mention of emacs wdired-mode, which sounds very similar. I mention it because I used emacs for almost a decade before noticing that there's a wdired mode as well as dired mode.
- kqr 8y agoThere also sunrise mode, which combines (w)dired with ortodox file managers. Easily one of the best ways to deal with files. Particularly in combination with Tramp...
- jskulski 8y agoWhat is sunrise mode? Are you referring to https://www.emacswiki.org/emacs/Sunrise_Commander https://www.emacswiki.org/emacs/Sunrise_Commander ?
- j88439h84 8y agoSunrise Commander is my favorite https://github.com/escherdragon/sunrise-commander https://github.com/escherdragon/sunrise-commander
- agumonkey 8y agoI like the idea but it's often confusing and frightening to edit shit like that in emacs, especially if you start automating through keyboard macros
- eddieh 8y agoC-x C-q from dired-mode to enter editable/writable mode, then C-c C-c when done.
- rattray 8y agoDoes anyone know of a vimv equivalent for vscode?
- NickHoff 8y agoRanger (command line file manager) also has a :bulkrename command. Useful.
- rjzzleep 8y agoThere's renameutils[1] which has qmv And as someone else mentioned nnn integrates well with vidir which does exactly what you describe. In most distros it's installable through moreutils [2]. vidir uses $EDITOR , so it works with pretty much anything. [1] https://www.nongnu.org/renameutils/ https://www.nongnu.org/renameutils/ [2] https://joeyh.name/code/moreutils/ https://joeyh.name/code/moreutils/
- alan_wade 8y ago> I do not use a terminal based file manager - I find that a better workflow for me is to use sshfs to create a local mount on my laptop and then just use the Finder to browse ... which gives me preview, etc. I had no idea you can do that, thank you for sharing!
- apjana 8y agoThe terminal has its own advantges. But surely it's subjective. Coming to your use-cases: > use the Finder to browse ... which gives me preview, etc. Preview is not available, and there are other emerging file managers which agree that preview is redundant for a fast workflow. People may not want to have a jumpy experience to preview a 8K res image all the time. And that image can be compromising as well. It's easy to say make it optional, but it adds tons of deps on other tools which `nnn` doesn't want to bear. It integrates with sxiv, so you can open a dir of images in sxiv and browse at will. > renaming a bunch of files in a directory `nnn` supports in-place renames and it integrates with `vidir`, which allows you to batch rename in vi, exactly the same thing which your favourite utility does. I mentioned this earlier but it got lost among other responses. Probably you haven't read the features section or given `nnn` a try which is why you missed `vidir`. I recommend at least a quick at the features list. If you want to try it, `nnn` is available on Homebrew.