Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.2 KB

File metadata and controls

41 lines (29 loc) · 1.2 KB

dired-flip

Flips the default ls -al column order in dired so you see what matters first.

demo.gif

Pressing ( or ) cycles through three views:

  1. Flipped — filename left, attributes right-aligned to window edge
  2. Hidden — filename only (dired-hide-details-mode)
  3. Raw — standard ls -l output

Install

(use-package dired-flip
  :ensure nil
  :load-path "~/path/to/dired-flip"
  :hook (dired-mode . dired-flip-mode)
  :bind (:map dired-mode-map
         ("(" . dired-flip-toggle)
         (")" . dired-flip-toggle-backward)))

Customization

VariableDefaultDescription
dired-flip-min-gap2Minimum spaces between filename and attributes
dired-flip-truncation-string"..."Appended to truncated filenames

Compatibility

  • Emacs 27.1+
  • dired-subtree — respects indentation, attributes stay right-aligned
  • diredfl — preserves font-lock faces on attributes

License

GPL-3.0