Function: trashed-mode

trashed-mode is an interactive and natively compiled function defined in trashed.el.

Signature

(trashed-mode)

Documentation

Major mode for viewing/editing system trash can.

Open, view, restore or permanently delete trashed files or directories in trash can with Dired-like look and feel.

Customization variables:

  trashed-use-header-line
  trashed-sort-key
  trashed-size-format
  trashed-date-format
  trashed-action-confirmer

Hooks:

  trashed-load-hook
  trashed-mode-hook
  trashed-before-readin-hook
  trashed-after-readin-hook

Keybindings:

# trashed-flag-auto-save-files
$ d trashed-flag-delete-files-by-date
$ m trashed-mark-files-by-date
$ r trashed-flag-restore-files-by-date
$ u trashed-unmark-files-by-date
% d trashed-flag-delete-files-regexp
% m trashed-mark-files-regexp
% r trashed-flag-restore-files-regexp
% u trashed-unmark-files-regexp
- negative-argument
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
< beginning-of-buffer
<backspace> trashed-previous-line
<backtab> trashed-backward-column
<double-mouse-1> trashed-mouse-browse-url-of-file
<down> trashed-next-line
<follow-link> mouse-face
<keymap> C-M-i backward-button
<keymap> TAB forward-button
<mouse-2> mouse-select-window
<mouse-2> trashed-mouse-find-file-other-window
<mouse-3> trashed-mouse-popup-menu
<tab> trashed-forward-column
<up> trashed-previous-line
> end-of-buffer
? describe-mode
C-n trashed-next-line
C-o trashed-display-file
C-p trashed-previous-line
D trashed-do-delete
DEL scroll-down-command
M trashed-mark-all
M-<left> tabulated-list-previous-column
M-<right> tabulated-list-next-column
R trashed-do-restore
RET trashed-find-file
S tabulated-list-sort
S-SPC scroll-down-command
SPC scroll-up-command
SPC trashed-next-line
SPC..~ undefined
U trashed-unmark-all
W trashed-browse-url-of-file
d trashed-flag-delete
e trashed-browse-url-of-file
f trashed-find-file
g revert-buffer
h describe-mode
m trashed-mark
n next-line
n trashed-next-line
o trashed-find-file-other-window
p previous-line
p trashed-previous-line
q quit-window
r trashed-flag-restore
t trashed-toggle-marks
u trashed-unmark
v trashed-view-file
x trashed-do-execute
{ tabulated-list-narrow-current-column
} tabulated-list-widen-current-column
~ trashed-flag-backup-files

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/7ppdacjhnynz276lxxnfw8sdz6r2k6h2-emacs-packages-deps/share/emacs/site-lisp/elpa/trashed-20230811.157/trashed.el
;;; User commands

(define-derived-mode trashed-mode tabulated-list-mode "Trashed"
  "Major mode for viewing/editing system trash can.
Open, view, restore or permanently delete trashed files or directories
in trash can with Dired-like look and feel.

Customization variables:

  `trashed-use-header-line'
  `trashed-sort-key'
  `trashed-size-format'
  `trashed-date-format'
  `trashed-action-confirmer'

Hooks:

  `trashed-load-hook'
  `trashed-mode-hook'
  `trashed-before-readin-hook'
  `trashed-after-readin-hook'

Keybindings:

\\{trashed-mode-map}"
  ;; Column widths of size/date/name are set in `trashed-read-files'
  (setq tabulated-list-format [("T"            1 t)
                               ("Size"         0 trashed-size-sorter
                                                   :right-align t)
                               ("Date deleted" 0 t :right-align t)
                               ("Name"         0 t)]
        tabulated-list-sort-key trashed-sort-key
        tabulated-list-printer 'trashed-list-print-entry
        tabulated-list-padding 2
        font-lock-defaults '(trashed-font-lock-keywords t))
  (add-hook 'tabulated-list-revert-hook #'trashed-readin nil t)
  (font-lock-mode t))