Sort files in specific folder with ranger
9,094
Solution 1
While not an edit to rc.conf, these key bindings should help. "os" sorts by size first. Pressing "o" will bring up a list of different options. This resource helped me find the answers: http://dquinton.github.io/debian-install/files/ranger-keybinds_quinton.pdf.
Solution 2
The path
variable must be in lowercase, not in uppercase.
setlocal path=~/Screenshots sort mtime
setlocal path=~/Screenshots sort_reverse False
(tested on ranger-stable 1.8.1)
See the default rc.conf file.
Related videos on Youtube
![Philipp L.](https://lh6.googleusercontent.com/-MJBroEJ9GK4/AAAAAAAAAAI/AAAAAAAAABc/-LDPYuwX9mY/photo.jpg?sz=256)
Author by
Philipp L.
Philosophy student. LaTeX skills: 2/10 (beginner).
Updated on September 18, 2022Comments
-
Philipp L. almost 2 years
I would like to sort the files in my Screenshots folder by date, so I added the following to my rc.conf:
setlocal PATH=~/Screenshots sort mtime setlocal PATH=~/Screenshots sort_reverse False
But it does not seem to work. Did I make a syntax error?
Thanks
-
cezar almost 7 yearsWhich distribution, version and kernel version are you running?
-