branch: elpa/helm commit dc0ed5b94ecb6057260c64b118424d5683743ded Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Add recover file action to HFF --- helm-files.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helm-files.el b/helm-files.el index e22997c6f4..748cc8b720 100644 --- a/helm-files.el +++ b/helm-files.el @@ -4543,6 +4543,11 @@ Arg FILE is the real part of candidate, a filename with no props." (when (file-regular-p candidate) (setq actions (helm-append-at-nth actions '(("Checksum File" . helm-ff-checksum)) 4))) + (when (file-exists-p (expand-file-name + (format "#%s#" (helm-basename candidate)) + (helm-basedir candidate))) + (setq actions (helm-append-at-nth + actions '(("Recover file" . recover-file)) 4))) (cond ((and (file-exists-p candidate) (string-match helm-ff--trash-directory-regexp (helm-basedir (expand-file-name candidate)))