4 ms·
...and a tip for `ranger`: `alias r='source ranger'` See `cat "$( which ranger )"` for what it does, but TLDR lets your shell `cd` (navigate) to the directory
by ramses0 1y ago
...and a tip for `ranger`: `alias r='source ranger'`
See `cat "$( which ranger )"` for what it does, but TLDR lets your shell `cd` (navigate) to the directory where you've navigated to within ranger. (ie: you can use the alias `r` as a lazy man's `cd`).
It has to be done as a shell alias b/c `$PWD` is exclusively a shell concept, can't be modified by a mere program that you're running (thankfully).
Other useful bits are sometimes `F2` for interactive file-rename (eg: backspace `.txt` to `.csv` or whatever), mark/tag support so `'d` goes to `~/Downloads`, `'g` goes to `~/Git`, `'t` for `/tmp`, etc.
Overall if you're decent at vim there's a lot to love, and otherwise the basics pretty much work like you'd expect with keyboard/gui conventions (arrows, f2, etc).