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

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

[nongnu] elpa/hyperdrive 8f1ab68519 26/31: Change: (hyperdrive-mirror) S


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 8f1ab68519 26/31: Change: (hyperdrive-mirror) Show short key in URL column
Date: Fri, 3 Nov 2023 22:00:48 -0400 (EDT)

branch: elpa/hyperdrive
commit 8f1ab685196fbd135091fa582b489c1e68a1a1bf
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Change: (hyperdrive-mirror) Show short key in URL column
---
 hyperdrive-mirror.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hyperdrive-mirror.el b/hyperdrive-mirror.el
index b5fe1cdae6..f2cd715968 100644
--- a/hyperdrive-mirror.el
+++ b/hyperdrive-mirror.el
@@ -96,8 +96,10 @@ STATUS is one of:
     (abbreviate-file-name file)))
 
 (hyperdrive-mirror-define-column "Hyperdrive File" ()
-  (pcase-let (((cl-struct hyperdrive-mirror-item url) item))
-    url))
+  (pcase-let* (((cl-struct hyperdrive-mirror-item url) item)
+               (entry (hyperdrive-url-entry url))
+               (short-url (hyperdrive--format-entry-url entry :host-format 
'short-key)))
+    (propertize url 'display short-url)))
 
 (unless hyperdrive-mirror-columns
   (setq-default hyperdrive-mirror-columns



reply via email to

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