complete-computing-environment/dired_file_manager.org

1.2 KiB

Dired File Manager

(provide 'cce/dired)

I'm trying to use dired instead of a graphical file manager like Dolphin. With TRAMP, properly configured, and using fast TRAMP transports, dired can copy files and things like wdired make it possible to make bulk file metadata edits.

When you have two dired buffers side by side, if you rename (R) or copy (C) in a dired buffer, with another dired buffer next to it, settings dired-dwim-target to non-nil will auto-fill the adjacent buffer in those operations.

(setq dired-dwim-target t)

Rebind ^ to use find-alternate-file to go up a directory, again to prevent dired buffer bloat.

(with-eval-after-load 'dired
  (define-key dired-mode-map (kbd "^")
    (apply-partially #'find-alternate-file "..")))