branch: elpa/helm commit 3420b2ab82f54e83eb5edbf03402da89a0a7341f Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Add more actions to finder --- helm-packages.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helm-packages.el b/helm-packages.el index be9d54ea5f..bc3f2b23ec 100644 --- a/helm-packages.el +++ b/helm-packages.el @@ -396,7 +396,14 @@ to avoid errors with outdated packages no more availables." (helm-init-candidates-in-buffer 'global (helm-finder--list-matches c))) :filtered-candidate-transformer #'helm-packages-transformer-1 - :action '(("Describe package" . helm-packages-describe))) + :action-transformer (lambda (actions candidate) + (if (package-installed-p candidate) + actions + (append actions + '(("Install packages(s)" + . helm-packages-install))))) + :action '(("Describe package" . helm-packages-describe) + ("Visit homepage" . helm-packages-visit-homepage))) :buffer "*helm finder results*")))) :buffer "*helm finder*"))