diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-07-06 18:38:53 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-07-06 18:38:53 +0200 |
commit | e698de35c487593958f84c881ddb4629195b0d07 (patch) | |
tree | d1d32ec08891a74b740f9ce0e10a4d8a9d2520b5 /helm-files.el | |
parent | 5161530d89a65e64fb5f4ccbd32a8441bdd8cf24 (diff) |
Add conditions for trash dir in action transformer
* helm-files.el (helm-find-files-action-transformer): Do it.
Diffstat (limited to 'helm-files.el')
-rw-r--r-- | helm-files.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-files.el b/helm-files.el index da025e4f..2c14c901 100644 --- a/helm-files.el +++ b/helm-files.el @@ -2920,6 +2920,8 @@ Return candidates prefixed with basename of `helm-input' first." (setq actions (helm-append-at-nth actions '(("Checksum File" . helm-ff-checksum)) 4))) (cond ((and (string-match "Trash/files/?\\'" (helm-basedir candidate)) + (not (member (helm-basename candidate) '("." ".."))) + (file-exists-p candidate) (executable-find "trash")) (helm-append-at-nth actions |