[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 211a0c7cba 087/102: Tidy: Indentation
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/hyperdrive 211a0c7cba 087/102: Tidy: Indentation |
|
Date: |
Wed, 29 Nov 2023 04:00:57 -0500 (EST) |
branch: elpa/hyperdrive
commit 211a0c7cbacf1aee204346934781f7a7f66cb20b
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Tidy: Indentation
---
hyperdrive-dir.el | 6 +--
hyperdrive-lib.el | 2 +-
hyperdrive-menu.el | 150 ++++++++++++++++++++++++++---------------------------
3 files changed, 79 insertions(+), 79 deletions(-)
diff --git a/hyperdrive-dir.el b/hyperdrive-dir.el
index 87ba599943..3b921b2576 100644
--- a/hyperdrive-dir.el
+++ b/hyperdrive-dir.el
@@ -65,7 +65,7 @@ If THEN, call it in the directory buffer with no arguments."
(metadata-queue) (ewoc) (prev-entry) (prev-point))
(cl-labels ((goto-entry (entry ewoc)
(when-let ((node (h/ewoc-find-node ewoc entry
- :predicate #'he/equal-p)))
+ :predicate #'he/equal-p)))
(goto-char (ewoc-location node))))
(update-footer (num-filled num-of)
(when (zerop (mod num-filled 5))
@@ -110,8 +110,8 @@ If THEN, call it in the directory buffer with no arguments."
(update-footer num-filled num-entries)
(dolist (entry entries)
(h/fill entry :queue metadata-queue
- :then (lambda (&rest _)
- (update-footer (cl-incf num-filled) num-entries))))
+ :then (lambda (&rest _)
+ (update-footer (cl-incf num-filled) num-entries))))
(plz-run metadata-queue)
(when then
(funcall then)))))))
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index cf0aefc3a5..b5c0aa6ab5 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -911,7 +911,7 @@ Call ELSE if request fails."
"Write BODY to hyperdrive ENTRY's URL."
(declare (indent defun))
(h//write (he/url entry)
- :body body :then then :else else :queue queue))
+ :body body :then then :else else :queue queue))
(cl-defun h//format-entry-url
(entry &key (host-format '(public-key domain))
diff --git a/hyperdrive-menu.el b/hyperdrive-menu.el
index 0c6c26e43a..ab046123c0 100644
--- a/hyperdrive-menu.el
+++ b/hyperdrive-menu.el
@@ -125,81 +125,81 @@
(and (h/menu--scope)
;; TODO: Remove this check and add useful history transient UI.
(not (eq 'h/history-mode major-mode))))
- [;; Current
- :description
- (lambda ()
- (let ((entry (h/menu--scope)))
- (concat (propertize "Current: " 'face 'transient-heading)
- (propertize (h//format-path (he/path entry))
- 'face 'transient-value))))
- ("g" "Refresh" revert-buffer)
- ("^" "Up to parent" h/up
- :inapt-if-not (lambda ()
- (h/parent (h/menu--scope))))
- ("s" "Sort" h/dir-sort
- :if-mode h/dir-mode
- :transient t)
- ;; TODO: Consider running whatever command imenu has been rebound to in the
- ;; global map, e.g., consult-imenu.
- ("j" "Jump" imenu
- :if-mode h/dir-mode)
- ;; TODO: Combine previous and next commands on the same line?
- ("p" "Previous" h/ewoc-previous
- :if-mode h/dir-mode
- :transient t)
- ("n" "Next" h/ewoc-next
- :if-mode h/dir-mode
- :transient t)
- ("w" "Copy URL" h/copy-url
- :if-not-mode h/dir-mode)
- ("D" "Delete" h/delete
- :if-not-mode h/dir-mode
- :inapt-if (lambda ()
- (pcase-let (((cl-struct hyperdrive-entry hyperdrive version)
- (h/menu--scope)))
- (or version (not (h/writablep hyperdrive))))))
- ("d" "Download" h/download
- :if-not-mode h/dir-mode)]
- ;; TODO: Consider adding a defcustom to hide the "Selected" and
- ;; "Current" groups when in a directory buffer.
- [;; Selected
- :if (lambda ()
- (and (h/menu--scope)
- (eq major-mode 'h/dir-mode)
- (h/dir--entry-at-point)))
- :description
- (lambda ()
- (let ((current-entry (h/menu--scope))
- (selected-entry (h/dir--entry-at-point)))
- (concat (propertize "Selected: " 'face 'transient-heading)
- (propertize
- (or (and (he/equal-p current-entry selected-entry)
- "./")
- (alist-get 'display-name
- (he/etc selected-entry))
- (he/name selected-entry))
- 'face 'transient-value))))
- :pad-keys t
- ("d" "Download" h/download
- :inapt-if (lambda ()
- (when-let ((entry-at-point (h/dir--entry-at-point)))
- (h//entry-directory-p entry-at-point))))
- ("D" "Delete" h/delete
- :inapt-if (lambda ()
- (let ((current-entry (h/menu--scope))
- (selected-entry (h/dir--entry-at-point)))
- (or (not (h/writablep
- (he/hyperdrive current-entry)))
- (eq selected-entry current-entry)
- (string= "../" (alist-get 'display-name
- (he/etc selected-entry)))))))
- ("w" "Copy URL" h/dir-copy-url)
- ;; FIXME: The sequence "? RET" says "Unbound suffix" instead of showing
the help for that command. Might be an issue in Transient.
- ("RET" "Open" h/dir-find-file)
- ("v" "View" h/dir-view-file
- :inapt-if (lambda ()
- (when-let ((entry-at-point (h/dir--entry-at-point)))
- (h//entry-directory-p entry-at-point))))]]
+ [;; Current
+ :description
+ (lambda ()
+ (let ((entry (h/menu--scope)))
+ (concat (propertize "Current: " 'face 'transient-heading)
+ (propertize (h//format-path (he/path entry))
+ 'face 'transient-value))))
+ ("g" "Refresh" revert-buffer)
+ ("^" "Up to parent" h/up
+ :inapt-if-not (lambda ()
+ (h/parent (h/menu--scope))))
+ ("s" "Sort" h/dir-sort
+ :if-mode h/dir-mode
+ :transient t)
+ ;; TODO: Consider running whatever command imenu has been rebound to
in the
+ ;; global map, e.g., consult-imenu.
+ ("j" "Jump" imenu
+ :if-mode h/dir-mode)
+ ;; TODO: Combine previous and next commands on the same line?
+ ("p" "Previous" h/ewoc-previous
+ :if-mode h/dir-mode
+ :transient t)
+ ("n" "Next" h/ewoc-next
+ :if-mode h/dir-mode
+ :transient t)
+ ("w" "Copy URL" h/copy-url
+ :if-not-mode h/dir-mode)
+ ("D" "Delete" h/delete
+ :if-not-mode h/dir-mode
+ :inapt-if (lambda ()
+ (pcase-let (((cl-struct hyperdrive-entry hyperdrive
version)
+ (h/menu--scope)))
+ (or version (not (h/writablep hyperdrive))))))
+ ("d" "Download" h/download
+ :if-not-mode h/dir-mode)]
+ ;; TODO: Consider adding a defcustom to hide the "Selected" and
+ ;; "Current" groups when in a directory buffer.
+ [;; Selected
+ :if (lambda ()
+ (and (h/menu--scope)
+ (eq major-mode 'h/dir-mode)
+ (h/dir--entry-at-point)))
+ :description
+ (lambda ()
+ (let ((current-entry (h/menu--scope))
+ (selected-entry (h/dir--entry-at-point)))
+ (concat (propertize "Selected: " 'face 'transient-heading)
+ (propertize
+ (or (and (he/equal-p current-entry selected-entry)
+ "./")
+ (alist-get 'display-name
+ (he/etc selected-entry))
+ (he/name selected-entry))
+ 'face 'transient-value))))
+ :pad-keys t
+ ("d" "Download" h/download
+ :inapt-if (lambda ()
+ (when-let ((entry-at-point (h/dir--entry-at-point)))
+ (h//entry-directory-p entry-at-point))))
+ ("D" "Delete" h/delete
+ :inapt-if (lambda ()
+ (let ((current-entry (h/menu--scope))
+ (selected-entry (h/dir--entry-at-point)))
+ (or (not (h/writablep
+ (he/hyperdrive current-entry)))
+ (eq selected-entry current-entry)
+ (string= "../" (alist-get 'display-name
+ (he/etc
selected-entry)))))))
+ ("w" "Copy URL" h/dir-copy-url)
+ ;; FIXME: The sequence "? RET" says "Unbound suffix" instead of
showing the help for that command. Might be an issue in Transient.
+ ("RET" "Open" h/dir-find-file)
+ ("v" "View" h/dir-view-file
+ :inapt-if (lambda ()
+ (when-let ((entry-at-point (h/dir--entry-at-point)))
+ (h//entry-directory-p entry-at-point))))]]
[["Gateway"
:description
(lambda ()
- [nongnu] elpa/hyperdrive e152a7a370 022/102: Change: (hyperdrive-menu-hyperdrive) Change binding for -set-filter, (continued)
- [nongnu] elpa/hyperdrive e152a7a370 022/102: Change: (hyperdrive-menu-hyperdrive) Change binding for -set-filter, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 6c295d8b2c 054/102: Add: (--format) Display hyperdrive according to format string, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 210cb2a259 030/102: Fix: (hyperdrive-menu) Require hyperdrive-mirror, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive b8ca5ec017 042/102: Fix (hyperdrive-menu-hyperdrive) Autoload, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive dae287e1aa 012/102: Comment: Add transient todos, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive f5d14e4226 050/102: Change: (hyperdrive-preferred-naming) Rename from -default-host-format, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive b268bed649 028/102: Change: (hyperdrive-mirror-set-target) Use :always-read nil, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 165f2f9a9d 056/102: Change: Rename variable, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 48afc51ac2 088/102: Fix: (org-open-at-point-functions) Pass full symbol, not shorthand, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive fdf2b7cbff 078/102: Docs: Fix typo, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 211a0c7cba 087/102: Tidy: Indentation,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 4108f968aa 080/102: Tidy: Typo, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive af5daac737 017/102: Change: (-menu-hyperdrive) Use default-directory as default source, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 1e71cec4d0 074/102: Docs: Improve versioning section, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive c6c9bdbb77 082/102: Meta: Depend on transient v0.5.0, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 4aff066a9d 073/102: Docs: Improve naming section, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 5ef8e22cfd 019/102: Change: (hyperdrive-menu-hyperdrive) Simplify wording, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 69d0d16b18 063/102: Use format-spec to customize hyperdrive and entry display, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 9bc9cf44d8 018/102: Fix: (hyperdrive-mirror-read-predicate) Return symbol for named func, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive d0d444aab2 040/102: Change: (hyperdrive-mirror) Rename PREDICATE argument to FILTER, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 3a778929b8 041/102: Change: (hyperdrive-menu-hyperdrive) Wording of Mirror command, ELPA Syncer, 2023/11/29