[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'.
- [nongnu] elpa/hyperdrive 3ff1877985 032/123: Change: (hyperdrive-up) Take ENTRY as argument and check mode, (continued)
- [nongnu] elpa/hyperdrive 3ff1877985 032/123: Change: (hyperdrive-up) Take ENTRY as argument and check mode, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 8b86e2dc69 026/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive aa1aefdef9 048/123: Change: (hyperdrive-menu) Link to hyperdrive-menu-hyperdrive, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 90653597e7 035/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 2b0cf69857 050/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 5bad8e2762 040/123: Add: (hyperdrive-menu-hyperdrive) Transient for modifying hyperdrive, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 19ebc643b6 045/123: Change: (hyperdrive-menu-hyperdrive) Add petname setter, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4fe3125a1a 051/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 9b4a50994a 055/123: Fix: (hyperdrive-menu) Handle nonexistent next entry, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 2ca5459ab3 067/123: Add: (hyperdrive-menu) Directory at point group, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive e4e6103838 071/123: Change: (hyperdrive-menu) Merge File at point and Directory at point,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 819f6358fb 085/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 46e3cb960d 063/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 87a093db3a 089/123: Fix: Autoload -set-{petname, nickname} and add declarations, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 7a34065ea1 082/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4ed9c4995a 064/123: Change: (hyperdrive-menu) Make separate group for current directory, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 1e25c2ddb8 080/123: Change: (hyperdrive-menu) Make Visiting group work in files, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 717bd3762a 109/123: Tidy: Blank line, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive d8e1d88320 091/123: Change: (hyperdrive-menu) Rename Visiting -> Current, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 8de9249d2d 118/123: Change: (hyperdrive-delete) Make interactive command, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive e46c5d7805 095/123: Change: (hyperdrive-menu) Reorder version section, ELPA Syncer, 2023/10/06