0

Emacs 26.1, Windows 10. Dired+

Here some folder:

enter image description here

I want to reverse sort. So I press s

And here result:

enter image description here

I don't want to sort symbols: dot and 2 dots. I want to sort ONLY file names. Is it possible?

  • Pressing s does not mean to reverse the sort. See the documentation with {C-h k s} in a dired. – Marco Wahl Feb 10 at 21:28
2
  1. Set it per buffer: Use C-u s SWITCHES <RET> as documented in Updating the Dired Buffer section of the info manual, take only -l as the swithes, which defaults to -al.

  2. (setq dired-listing-switches "-l") sets it permanently.

  • But I want to see dots to can exit by arrow UP from folder. So I need to show dots, but exclude dots from sort. Is it possible? – Alexei Feb 11 at 8:29
  • Do you mean opening the parent dir by "can exit by arrow UP from folder"? If so, type ^. – whatacold Feb 11 at 8:38
  • I don't want EVERY time to type "Use C-u s SWITCHES <RET>" -1 to hide dots. Is it possible to do this automatically? – Alexei Feb 11 at 9:14
  • I've updated my answer, actually it's also documented in the manual section I posted before:) – whatacold Feb 11 at 9:47

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.