Skip to content

Commit

Permalink
Add checksum action to action transformer (#1769).
Browse files Browse the repository at this point in the history
* helm-files.el (helm-find-files-actions): Remove checksum.
(helm-find-files-action-transformer): Add it here.
  • Loading branch information
Thierry Volpiatto committed May 12, 2017
1 parent d7b552e commit c2f6169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ Don't set it directly, use instead `helm-ff-auto-update-initial-value'.")
"Find File" 'helm-find-file-or-marked
"Find file in Dired" 'helm-point-file-in-dired
"View file" 'view-file
"Checksum File" 'helm-ff-checksum
"Query replace fnames on marked" 'helm-ff-query-replace-on-marked
"Query replace contents on marked" 'helm-ff-query-replace
"Query replace regexp contents on marked" 'helm-ff-query-replace-regexp
Expand Down Expand Up @@ -2376,6 +2375,9 @@ Return candidates prefixed with basename of `helm-input' first."
(let ((str-at-point (with-helm-current-buffer
(buffer-substring-no-properties
(point-at-bol) (point-at-eol)))))
(when (file-regular-p candidate)
(setq actions (helm-append-at-nth
actions '(("Checksum File" . helm-ff-checksum)) 4)))
(cond ((with-helm-current-buffer
(eq major-mode 'message-mode))
(append actions
Expand Down

0 comments on commit c2f6169

Please sign in to comment.