complete-computing-environment/dired_file_manager.org

31 lines
1.2 KiB
Org Mode

:PROPERTIES:
:ID: cce/dired_file_manager
:END:
#+TITLE: Dired File Manager
#+PROPERTY: header-args :mkdirp yes :results none
#+PROPERTY: header-args:emacs-lisp :tangle dired.el
#+ARROYO_EMACS_MODULE: dired
#+ARCOLOGY_KEY: cce/dired
#+ARROYO_MODULE_WANTS: cce/configure_packaging.org
#+ARCOLOGY_ALLOW_CRAWL: t
#+begin_src emacs-lisp
(provide 'cce/dired)
#+end_src
I'm trying to use =dired= instead of a graphical file manager like Dolphin. With [[id:7316b6e4-12dd-4811-9887-8b0d539715a9][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.
#+begin_src emacs-lisp
(setq dired-dwim-target t)
#+end_src
Rebind =^= to use =find-alternate-file= to go up a directory, again to prevent dired buffer bloat.
#+begin_src emacs-lisp
(with-eval-after-load 'dired
(define-key dired-mode-map (kbd "^")
(apply-partially #'find-alternate-file "..")))
#+end_src