[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 46e3e034ac 13/33: Change: (--easy-menu-contents
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 46e3e034ac 13/33: Change: (--easy-menu-contents) Add "Current" > "Version" submenu |
Date: |
Wed, 11 Oct 2023 22:00:44 -0400 (EDT) |
branch: elpa/hyperdrive
commit 46e3e034aca491c6d9710629fd8a20cd3e4ce2e3
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (--easy-menu-contents) Add "Current" > "Version" submenu
---
hyperdrive.el | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/hyperdrive.el b/hyperdrive.el
index dacf5f1858..cdd577be53 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -842,6 +842,41 @@ The return value of this function is the retrieval buffer."
["Purge" hyperdrive-purge
:help "Purge all local data about hyperdrive"])
"---"
+ ("Current"
+ :active hyperdrive-current-entry
+ :label (if-let* ((entry hyperdrive-current-entry))
+ (format "Current: «%s»"
+ (hyperdrive-entry-description entry))
+ "Current")
+ ("Version"
+ :label (format "Version (%s)"
+ (or (hyperdrive-entry-version hyperdrive-current-entry)
+ "latest"))
+ ["Previous Version" hyperdrive-previous-version
+ :active (hyperdrive-entry-previous hyperdrive-current-entry :cache-only
t)
+ :label (concat "Previous Version"
+ (pcase-exhaustive (hyperdrive-entry-previous
hyperdrive-current-entry :cache-only t)
+ ('unknown (format " (?)"))
+ ('nil nil)
+ ((cl-struct hyperdrive-entry version)
+ (format " (%s)" version))))
+ :help "Open previous version"]
+ ["Next Version" hyperdrive-next-version
+ :active (and (hyperdrive-entry-version hyperdrive-current-entry)
+ (hyperdrive-entry-next hyperdrive-current-entry))
+ :label (concat "Next Version"
+ (when-let* ((entry hyperdrive-current-entry)
+ (next-entry (hyperdrive-entry-next entry))
+ ;; Don't add ": latest" if we're already at
the latest version
+ ((not (eq entry next-entry)))
+ (display-version (if-let ((next-version
(hyperdrive-entry-version next-entry)))
+ (number-to-string
next-version)
+ "latest")))
+ (format " (%s)" display-version)))
+ :help "Open next version"]
+ ["Version History" hyperdrive-history
+ :help "Open version history"]))
+ "---"
("Files"
["Find File" hyperdrive-find-file
:help "Find a file in a hyperdrive"]
- [nongnu] elpa/hyperdrive fe75e93b86 06/33: Change: (hyperdrive--easy-menu-contents) Add "Upload" submenu, (continued)
- [nongnu] elpa/hyperdrive fe75e93b86 06/33: Change: (hyperdrive--easy-menu-contents) Add "Upload" submenu, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 1b56ecd041 11/33: Change: (--easy-menu-contents) Format with parens instead of colon, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 6740906e5f 07/33: Change: (hyperdrive--easy-menu-contents) Move "Gateway" to top, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 14718b1018 16/33: Comment: Add TODO, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive f9542ce234 03/33: Add: (hyperdrive-global-easy-menu) Add easy menu, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive a36f4fe719 08/33: Add: (hyperdrive-{customize, info-manual}) Miscellaneous commands, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 34c5f384a2 18/33: Change: (--easy-menu-contents) Move "Version" submenu to end, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive e82e9db0b2 22/33: Change: Make "Drives" subcommands use appropriate drive, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 0e17d571f6 28/33: Comment: Add to TODO, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive b1402fe8d8 29/33: Change: (-global-easy-menu) Allow copying URL of current directory, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 46e3e034ac 13/33: Change: (--easy-menu-contents) Add "Current" > "Version" submenu,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive fae8e08978 19/33: Change: (--easy-menu-contents) Move "Current Drive" into "Current", ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 73e8e8ab68 20/33: Change: (hyperdrive-global-easy-menu) WIP, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 1d911fee7f 33/33: Change: (hyperdrive-global-easy-menu) Add "Sort Directory" submenu, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive a416692858 01/33: Change: (hyperdrive-menu) "Hyperdrives" -> "Hyperdrive", ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 5100391bdd 05/33: Change: (hyperdrive--easy-menu-contents) Add "Bookmark" submenu, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive a971395216 09/33: Change: (--easy-menu-contents) Add "Customize" and "Info Manual", ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive c47455dbe7 21/33: Add workaround for Emacs bug, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive dc59d7f775 23/33: Change: (-global-easy-menu) Move find/view file into "Drives", ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 77301eeddb 25/33: Change: (-global-easy-menu) Move "Describe" to top of submenu, ELPA Syncer, 2023/10/11
- [nongnu] elpa/hyperdrive 029f2b12aa 27/33: Comment: Remove TODO, ELPA Syncer, 2023/10/11