[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive f9e2623048 05/14: Add: (hyperdrive-dir-view-fil
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive f9e2623048 05/14: Add: (hyperdrive-dir-view-file) View file from hyperdrive-dir-mode |
Date: |
Wed, 6 Sep 2023 04:00:02 -0400 (EDT) |
branch: elpa/hyperdrive
commit f9e2623048f62917913800e615de15d7a3d7b2e2
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Add: (hyperdrive-dir-view-file) View file from hyperdrive-dir-mode
---
hyperdrive-dir.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hyperdrive-dir.el b/hyperdrive-dir.el
index ce2ba3351b..840597f83e 100644
--- a/hyperdrive-dir.el
+++ b/hyperdrive-dir.el
@@ -199,6 +199,7 @@ With point on header, returns directory entry."
:doc "Local keymap for `hyperdrive-dir-mode' buffers."
"RET" #'hyperdrive-dir-find-file
"f" #'hyperdrive-find-file ;; Alternatively, define new function which
fills in name of entry at point.
+ "v" #'hyperdrive-dir-view-file
"j" #'imenu
"w" #'hyperdrive-dir-copy-url
"d" #'hyperdrive-dir-download-file
@@ -229,6 +230,15 @@ Interactively, visit file or directory at point in
(interactive (list (hyperdrive-dir--entry-at-point)))
(hyperdrive-open entry))
+(declare-function hyperdrive-view-file "hyperdrive")
+(defun hyperdrive-dir-view-file (entry)
+ "Open hyperdrive ENTRY at point in `view-mode'.
+Interactively, opens file or directory at point in
+`hyperdrive-dir' buffer."
+ (declare (modes hyperdrive-dir-mode))
+ (interactive (list (hyperdrive-dir--entry-at-point)))
+ (hyperdrive-view-file entry))
+
(declare-function hyperdrive-copy-url "hyperdrive")
(defun hyperdrive-dir-copy-url (entry)
- [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, 2023/09/06
- [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 <=
- [nongnu] elpa/hyperdrive 55494532f3 07/14: Docs: Document hyperdrive-view-file and dir/history wrappers, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive aa29fa3652 06/14: Add: (hyperdrive-history-view-file) View file from history mode, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive f30fe3d890 11/14: Add: kill-buffer-query-functions integration, ELPA Syncer, 2023/09/06
- [nongnu] elpa/hyperdrive e85bd37f52 14/14: Fix: (-entry-version-ranges-no-gaps) Handle unknown entries, ELPA Syncer, 2023/09/06