Function: smart-dired-assist
smart-dired-assist is an interactive and byte-compiled function
defined in hui-mouse.el.
Signature
(smart-dired-assist)
Documentation
Use a single assist key or mouse assist key to manipulate directory entries.
Invoked via an assist key press when in dired-mode. It assumes that its
caller has already checked that the assist key was pressed in an appropriate
buffer and has moved the cursor there.
If assist key is pressed:
(1) on a ~ character, all backup files in the directory are marked for
deletion;
(2) on a # character, all auto-save files in the directory are marked for
deletion;
(3) anywhere else within an entry line, the current entry is marked for
deletion;
(4) on or after the last line in the buffer, all delete marks on all entries
are undone.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-dired-assist ()
"Use a single assist key or mouse assist key to manipulate directory entries.
Invoked via an assist key press when in `dired-mode'. It assumes that its
caller has already checked that the assist key was pressed in an appropriate
buffer and has moved the cursor there.
If assist key is pressed:
(1) on a `~' character, all backup files in the directory are marked for
deletion;
(2) on a `#' character, all auto-save files in the directory are marked for
deletion;
(3) anywhere else within an entry line, the current entry is marked for
deletion;
(4) on or after the last line in the buffer, all delete marks on all entries
are undone."
(interactive)
(cond ((or (last-line-p) (and (first-line-p) (eolp)))
(dired-unmark-all-files ?D)
(goto-char (point-max)))
((looking-at "~") (dired-flag-backup-files))
((looking-at "#") (dired-flag-auto-save-files))
(t
;; Prevent any region selection from causing multiple files
;; to be marked for deletion; we want to mark only one.
(deactivate-mark t)
(dired-flag-file-deletion 1))))