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

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

[nongnu] elpa/hyperdrive e4e6103838 071/123: Change: (hyperdrive-menu) M


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive e4e6103838 071/123: Change: (hyperdrive-menu) Merge File at point and Directory at point
Date: Fri, 6 Oct 2023 01:01:06 -0400 (EDT)

branch: elpa/hyperdrive
commit e4e61038389ac347c0c81efe97fa142187fb2327
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Change: (hyperdrive-menu) Merge File at point and Directory at point
---
 hyperdrive-menu.el | 31 ++++++++-----------------------
 1 file changed, 8 insertions(+), 23 deletions(-)

diff --git a/hyperdrive-menu.el b/hyperdrive-menu.el
index ac08c0b3b8..406f859c97 100644
--- a/hyperdrive-menu.el
+++ b/hyperdrive-menu.el
@@ -77,37 +77,22 @@
      :inapt-if-not (lambda ()
                      (hyperdrive-parent (oref transient--prefix scope))))
     ("o" "Sort" hyperdrive-dir-sort)]
-   [ ;; File at point
+   [ ;; At point
     :if (lambda ()
           (let ((entry (oref transient--prefix scope)))
             (and (oref transient--prefix scope)
-                 (eq major-mode 'hyperdrive-dir-mode)
-                 (when-let ((entry-at-point (hyperdrive-dir--entry-at-point)))
-                   (not (hyperdrive--entry-directory-p entry-at-point))))))
+                 (eq major-mode 'hyperdrive-dir-mode))))
     :description
     (lambda ()
       (let ((entry (oref transient--prefix scope)))
-        (concat (propertize "File at point: " 'face 'transient-heading)
-                (propertize (hyperdrive-entry-name 
(hyperdrive-dir--entry-at-point))
-                            'face 'transient-value))))
-    ("f d" "Download" hyperdrive-download)
-    ;; FIXME: Enable this as a command.
-    ;; ("f D" "Delete" hyperdrive-delete)
-    ;; FIXME: Copy entry at point, not `hyperdrive-current-entry'.
-    ("w" "Copy URL" hyperdrive-copy-url)]
-   [ ;; Directory at point
-    :if (lambda ()
-          (let ((entry (oref transient--prefix scope)))
-            (and (oref transient--prefix scope)
-                 (eq major-mode 'hyperdrive-dir-mode)
-                 (when-let ((entry-at-point (hyperdrive-dir--entry-at-point)))
-                   (hyperdrive--entry-directory-p entry-at-point)))))
-    :description
-    (lambda ()
-      (let ((entry (oref transient--prefix scope)))
-        (concat (propertize "Directory at point: " 'face 'transient-heading)
+        (concat (propertize "At point: " 'face 'transient-heading)
                 (propertize (hyperdrive-entry-name 
(hyperdrive-dir--entry-at-point))
                             'face 'transient-value))))
+    ("f d" "Download" hyperdrive-download
+     :if (lambda ()
+           (when-let ((entry-at-point (hyperdrive-dir--entry-at-point)))
+
+             (not (hyperdrive--entry-directory-p entry-at-point)))))
     ;; FIXME: Enable this as a command.
     ;; ("f D" "Delete" hyperdrive-delete)
     ;; FIXME: Copy entry at point, not `hyperdrive-current-entry'.



reply via email to

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