A terminal file manager written in bash
github.com
github.com
Command line file managers are nice because when I move a file, it's all done on the remote box (and hence, faster).
however, i miss one feature for which i'd use a filemanager: in-place file renaming. in most cases when i want to rename a file, i want to change a small part of it, and i don't want to have to retype the whole filename.
i have yet to find a commandline utility (emacs doesn't count ;-) that offers that.
e.g.
mv /path/to/file{-old-name,-new-name}.txt
which expands to: mv /path/to/file-old-name.txt /path/to/file-new-name.txt
So use tab completion to get your path then go back and stick your curly brackets into it as needed. Oh and it works for things like git branch renaming or anything else you do in the terminal.but now i'll become good friends with qmv
greetings, eMBee.
It also comes with qmv, which will pop open an editor for you to perform inplace edits on filenames. Which is kinda like dired as an emacs comparison, at least if you squint an awful lot.
qmv even handles swapping filenames which ranger doesn't.
greetings, eMBee.
Of course, you could get more advanced with parameter tricks, eg. ${i%.ps}.pdf for changing the extension of $i from ps to pdf. (Technically: truncating the ending iff it matches ".ps" and adding ".pdf" no matter what.)
rename 's/foo/bar/' *.ext
Of course you have to know Perl...But this is nice, combining it with micro makes for a dead-easy combo of single-file utilities that I can drop onto a server and more easily move about.
C-x C-j (jump to directory)
Open the current directory in Dired (requires that
you first (require 'dired-x)) from any buffer, even
other directories, but usually from within files.
C-x C-q (edit directory)
Start editing the current directory as a plain-text
buffer and commit changes with C-c C-c or discard
all changes with C-c C-k.
One thing you can do with this is quickly swap two
filenames. Dired will give one of them a temp name
which is super convenient.
Combined with multiple-cursors package, this also
lets you mass rename files in ways that would be
much harder in terminal.
d (delete)
Mark items in directory for deletion, (x) to commit.
m (mark)
Mark items in a directory for:
R - rename (or move)
C - copy
For a more thorough list, open a directory and type C-h mhttps://github.com/emacs-helm/helm/wiki#helm-workflow-for-fi...
I even got my mother-in-law using Emacs!
curl 'https://raw.githubusercontent.com/dylanaraps/fff/master/fff' > fff; chmod +x fff
It's a 121 line Bash script, no dependencies. I suspect Emacs is slightly more intrusive than that."Slightly" is a very interesting word to use there :)
I've also had good luck with using the terminal program, vifm, which also uses familiar vi muscle memory in a traditional "commander-style" two-panel layout.