punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

Ranger fails to calculate file/directory size #181

Open yangsheng6810 opened 6 years ago

yangsheng6810 commented 6 years ago

In function ranger--get-file-sizes, there is a typo in the regex: [a-za-z] should be [A-Za-z]. Plus, this won't work if the current locale is not English, since it search for the string "total". I personally workaround it by setting environment variable to English before calling ranger-show-size and then switch back, but I don't think it a good solution. While debugging, I found a package named "dired-du", maybe it is a good idea to take a look?