emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm 3420b2ab82 2/5: Add more actions to finder


From: ELPA Syncer
Subject: [nongnu] elpa/helm 3420b2ab82 2/5: Add more actions to finder
Date: Tue, 20 Aug 2024 07:00:37 -0400 (EDT)

branch: elpa/helm
commit 3420b2ab82f54e83eb5edbf03402da89a0a7341f
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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*"))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]