no feature to shell into a directory ? that'd be useful
A terminal file manager written in bash
31–40 of 44 posts
Re: A terminal file manager written in bash
#32given that this is only 100 lines of code i am quite impressed. 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.
No need for a filemanager for in place file renaming. For that I'd just use curly bracket in bash or zsh. 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.
Re: A terminal file manager written in bash
#33Earlier quoted context omitted.
Two things that I always reach for Emacs to accomplish are git and file management, via Magit and Dired(X) respectively. Here's a quick cheat sheet of the things I use Dired for: 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…
Wow, I switched to Emacs earlier this year and have not encountered dired mode before. This is fantasic!
https://github.com/emacs-helm/helm/wiki#helm-workflow-for-fi...
Re: A terminal file manager written in bash
#34given that this is only 100 lines of code i am quite impressed. 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.
rename 's/foo/bar/' *.ext
Of course you have to know Perl...Re: A terminal file manager written in bash
#35Earlier quoted context omitted.
Two things that I always reach for Emacs to accomplish are git and file management, via Magit and Dired(X) respectively. Here's a quick cheat sheet of the things I use Dired for: 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…
Wow, I switched to Emacs earlier this year and have not encountered dired mode before. This is fantasic!
I even got my mother-in-law using Emacs!
Re: A terminal file manager written in bash
#36given that this is only 100 lines of code i am quite impressed. 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.
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.)
Re: A terminal file manager written in bash
#37Ranger has taken over my world the past few years. Heck I even have it working in Windows 10 in the Linux Subsystem (OpenSUSE for me). Ranger for me is just as fast in real life and my work Windows 10 machines are not anything to write home about.
Link for anyone like me who's never heard of it before: https://github.com/ranger/ranger
Re: A terminal file manager written in bash
#38Re: A terminal file manager written in bash
#39Ranger has taken over my world the past few years. Heck I even have it working in Windows 10 in the Linux Subsystem (OpenSUSE for me). Ranger for me is just as fast in real life and my work Windows 10 machines are not anything to write home about.
I've used Ranger in the past but eventually went back to Midnight Commander. From a usability point of viewer nothing compares with a fixed 2 panels file list.