[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive d888a2d1c3 04/14: Add: (hyperdrive-view-file) O
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive d888a2d1c3 04/14: Add: (hyperdrive-view-file) Open hyperdrive file in view-mode |
Date: |
Wed, 6 Sep 2023 04:00:02 -0400 (EDT) |
branch: elpa/hyperdrive
commit d888a2d1c37eb86461a43a3ceafdc0f2b9d64f16
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Add: (hyperdrive-view-file) Open hyperdrive file in view-mode
---
hyperdrive.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/hyperdrive.el b/hyperdrive.el
index 214b2e9594..4aa808f79b 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -349,6 +349,18 @@ for more information. See `hyperdrive-read-entry' and
(interactive (list (hyperdrive-read-entry :force-prompt current-prefix-arg)))
(hyperdrive-open entry))
+;;;###autoload
+(defun hyperdrive-view-file (entry)
+ "View ENTRY in `view-mode', returning to previous buffer when done.
+Interactively, prompts for known hyperdrive and path.
+
+With universal prefix argument \\[universal-argument], prompts
+for more information. See `hyperdrive-read-entry' and
+`hyperdrive-complete-hyperdrive'."
+ (interactive (list (hyperdrive-read-entry :force-prompt current-prefix-arg)))
+ (hyperdrive-open entry
+ :createp nil :then (lambda () (view-buffer (current-buffer)))))
+
;;;###autoload
(defun hyperdrive-open-url (url)
"Open hyperdrive URL."
- [nongnu] elpa/hyperdrive updated (fcfff46d68 -> e85bd37f52), ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive d888a2d1c3 04/14: Add: (hyperdrive-view-file) Open hyperdrive file in view-mode,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive dff584bbe9 08/14: Meta: Update changelog, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 465e8a1aca 10/14: Comment: Explanation, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 109452e780 09/14: Merge branch 'view-file', ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 006dcb9261 12/14: Meta: Update changelog, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 466cbdd551 01/14: Comment: Remove TODO, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 38e110b99f 02/14: Change: (hyperdrive-open) Add createp flag, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive ab00310b84 03/14: Fix: Describe return values in docstrings, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive a000cfb8ff 13/14: Comment: Explanation, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive f9e2623048 05/14: Add: (hyperdrive-dir-view-file) View file from hyperdrive-dir-mode, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive 55494532f3 07/14: Docs: Document hyperdrive-view-file and dir/history wrappers, ELPA Syncer, 2023/09/06