1

Linux Mint 20.1

Emacs 26.1

Install dired+ package. Also install DiredSort from here

https://www.emacswiki.org/emacs/DiredSort

I try to sort by size.

dired-sort-size

enter image description here

But I get error on empty screen: enter image description here

Error:

insert-directory: Listing directory failed but ‘access-file’ worked
1

I think that your problem has nothing to do with Dired+. I think you'll have the same problem if you don't load Dired+.

I can't speak for library dired-sort.el, which defines the command you're using. It may have a bug. Maybe contact the maintainer.

Emacs-Wiki page DiredSorting lists other libraries that offer sorting possibilities.

I use Dired Sort Menu (libraries dired-sort-menu+.el and dired-sort-menu.el), and they work fine for sorting by file size.

You can also just customize your dired-listing-switches string to include the character S (uppercase). Or just use C-u when you invoke Dired, and add S to the listing switches when prompted for them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.