[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 0e7e2cead8 003/123: WIP
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 0e7e2cead8 003/123: WIP |
Date: |
Fri, 6 Oct 2023 01:00:55 -0400 (EDT) |
branch: elpa/hyperdrive
commit 0e7e2cead8cd836d7a91a654d1e5c4aa8075b9ec
Author: Adam Porter <adam@alphapapa.net>
Commit: Joseph Turner <joseph@ushin.org>
WIP
---
hyperdrive.el | 118 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 63 insertions(+), 55 deletions(-)
diff --git a/hyperdrive.el b/hyperdrive.el
index a4a43b5012..30da60872d 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -771,61 +771,69 @@ The return value of this function is the retrieval
buffer."
(transient-define-prefix hyperdrive-transient ()
;; FIXME: Docstring.
""
- [("?" "Manual" hyperdrive-info-manual)]
- [ :class transient-subgroups
- ;; :pad-keys t
- ["Gateway"
- ("g s" "Start gateway" hyperdrive-start)
- ("g S" "Stop gateway" hyperdrive-stop)
- ("g v" "Show gateway version" hyperdrive-hyper-gateway-version)]
- ["Drives"
- ;; TODO: Consider showing current drive's public key or formatted name.
- ("d n" "New" hyperdrive-new)
- ("d d" "Describe" hyperdrive-describe-hyperdrive)
- ("d p" "Purge" hyperdrive-purge)
- ;; TODO: Show current names next to these.
- ("d s p" "Set petname" hyperdrive-set-petname)
- ("d s n" "Set nickname" hyperdrive-set-nickname)]
- ["Bookmarks"
- ("b j" "Jump" hyperdrive-bookmark-jump)
- ("b l" "List" hyperdrive-bookmark-list)
- ("b s" "Set" bookmark-set)]
- [:class transient-subgroups
- ["Files"
- ("f f" "Find" hyperdrive-find-file)
- ("f v" "View" hyperdrive-view-file)]
- ["File" :if (lambda ()
- (or (and hyperdrive-current-entry
- (not (hyperdrive--entry-directory-p
hyperdrive-current-entry)))
- (and (eq major-mode 'hyperdrive-dir-mode)
- (hyperdrive-dir--entry-at-point))))
- ("f d" "Download" hyperdrive-download-entry)
- ;; FIXME: Enable this as a command.
- ;; ("f D" "Delete" hyperdrive-delete)
- ("f h" "History" hyperdrive-history)
- ("f ^" "Up to parent" hyperdrive-up)
- ("f w" "Copy URL" hyperdrive-copy-url)
- ("f g"
- ;; TODO: Learn how to use `transient-setup-children' to
- ;; set up this group at runtime and include the default
- ;; `revert-buffer' binding.
- revert-buffer :description "Revert")
- ("f s"
- ;; TODO: Learn how to use `transient-setup-children' to
- ;; set up this group at runtime and include the default
- ;; `save-buffer' binding.
- save-buffer
- :description (lambda ()
- (format "Save (bound to %s outside of transient)"
- (substitute-command-keys
"\\<global-map>\\[save-buffer]"))))
- ("f W"
- ;; TODO: Learn how to use `transient-setup-children' to
- ;; set up this group at runtime and include the default
- ;; `write-buffer' binding.
- hyperdrive-write-buffer :description "Write")
- ]]])
-
-:if (lambda () hyperdrive-current-entry)
+ [("?" "Info manual" hyperdrive-info-manual)]
+ [ ;; :class transient-subgroups
+ ;; :pad-keys t
+ ["Gateway"
+ ("g s" "Start gateway" hyperdrive-start)
+ ("g S" "Stop gateway" hyperdrive-stop)
+ ("g v" "Show gateway version" hyperdrive-hyper-gateway-version)]
+ ["Drives"
+ ;; TODO: Consider showing current drive's public key or formatted name.
+ ("d n" "New" hyperdrive-new)
+ ("d d" "Describe" hyperdrive-describe-hyperdrive)
+ ("d p" "Purge" hyperdrive-purge)
+ ;; TODO: Show current names next to these.
+ ("d s p" "Set petname" hyperdrive-set-petname)
+ ("d s n" "Set nickname" hyperdrive-set-nickname)]
+ ["Bookmarks"
+ ("b j" "Jump" hyperdrive-bookmark-jump)
+ ("b l" "List" hyperdrive-bookmark-list)
+ ("b s" "Set" bookmark-set)]
+ ["Versioning"
+ ("v h" "History" hyperdrive-history)
+ ("v n" "Next" hyperdrive-next-version)
+ ("v p" "Previous" hyperdrive-previous-version)]
+ ["Upload"
+ ("u f" "File" hyperdrive-upload-file)
+ ("u F" "Files" hyperdrive-upload-files)
+ ("u m" "Mirror" hyperdrive-mirror)]]
+ [["Files"
+ ("f f" "Find" hyperdrive-find-file)
+ ("f v" "View" hyperdrive-view-file)
+ ("f o" "Open URL" hyperdrive-open-url)
+ ("o" "Sort" hyperdrive-dir-sort
+ :if (lambda ()
+ (eq major-mode 'hyperdrive-dir-mode)))]
+ ["File" :if (lambda ()
+ (or (and hyperdrive-current-entry
+ (not (hyperdrive--entry-directory-p
hyperdrive-current-entry)))
+ (and (eq major-mode 'hyperdrive-dir-mode)
+ (hyperdrive-dir--entry-at-point))))
+ ("f d" "Download" hyperdrive-download-entry)
+ ;; FIXME: Enable this as a command.
+ ;; ("f D" "Delete" hyperdrive-delete)
+
+ ("f ^" "Up to parent" hyperdrive-up)
+ ("f w" "Copy URL" hyperdrive-copy-url)
+ ("f g"
+ ;; TODO: Learn how to use `transient-setup-children' to
+ ;; set up this group at runtime and include the default
+ ;; `revert-buffer' binding.
+ revert-buffer :description "Revert")
+ ("f s"
+ ;; TODO: Learn how to use `transient-setup-children' to
+ ;; set up this group at runtime and include the default
+ ;; `save-buffer' binding.
+ save-buffer
+ :description (lambda ()
+ (format "Save (bound to %s outside of transient)"
+ (substitute-command-keys
"\\<global-map>\\[save-buffer]"))))
+ ("f W"
+ ;; TODO: Learn how to use `transient-setup-children' to
+ ;; set up this group at runtime and include the default
+ ;; `write-buffer' binding.
+ hyperdrive-write-buffer :description "Write")]])
;;;; Footer
- [nongnu] elpa/hyperdrive updated (653bbf6706 -> b5dc019164), ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 0e7e2cead8 003/123: WIP,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 8cfee60894 009/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 3283761169 001/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 3fb21b9fce 010/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4f297bfb6c 007/123: Change: (hyperdrive--format-host) Allow FORMAT to be an atom, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 1c8a1b2446 021/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4146ecd501 039/123: Change: (hyperdrive-set-nickname) Don't say anything in callback, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 8d40cdba48 036/123: WIP: hyperdrive-menu-up, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 083056ca9b 029/123: Fix: (hyperdrive--context-entry) With prefix arg, always read entry, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive b1e51aa444 049/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 46c56c7500 042/123: Tidy: Move require statements to top, ELPA Syncer, 2023/10/06