[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 43f50f2ae7 69/82: Change/Fix: (hyperdrive--org-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 43f50f2ae7 69/82: Change/Fix: (hyperdrive--org-open-at-point) Don't handle fuzzy links |
Date: |
Mon, 25 Sep 2023 19:00:55 -0400 (EDT) |
branch: elpa/hyperdrive
commit 43f50f2ae72023db43f463fbd24e080f07e30884
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change/Fix: (hyperdrive--org-open-at-point) Don't handle fuzzy links
This allows the internal Org machinery handle fuzzy links like [[*Heading
A]].
---
hyperdrive-org.el | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/hyperdrive-org.el b/hyperdrive-org.el
index ef46ed239b..33657b5361 100644
--- a/hyperdrive-org.el
+++ b/hyperdrive-org.el
@@ -136,7 +136,7 @@ TARGET may be a CUSTOM_ID or a headline."
"Handle relative links in hyperdrive-mode org files.
Added to `org-open-at-point-functions' in order to short-circuit
-the logic for handling links of \"fuzzy\" or \"file\" type.
+the logic for handling links of \"file\" type.
Uses `url-default-expander' to expand the relative link against
the current location."
@@ -148,16 +148,10 @@ the current location."
(link-type (org-element-property :type context))
(raw-link-type (org-element-property :raw-link context)))
(when (and (eq element-type 'link)
- (or
- ;; "fuzzy" is for relative links without ./ prefix.
- (equal "fuzzy" link-type)
- ;; "file is for absolute links and relative links with ./
prefix.
- (equal "file" link-type))
- ;; Allow links to explicitly point to local files by
- ;; prefixing with "file:" (because Org assumes that links
- ;; without a specified protocol are "file:" links).
+ (equal "file" link-type)
+ ;; Don't treat link as a relative/absolute path in the
+ ;; hyperdrive if "file:" protocol prefix is explicit.
(not (string-prefix-p "file:" raw-link-type)))
- ;; FIXME: For fuzzy links, passing to hyperdrive-expand-url is a no-no.
(hyperdrive-open-url (hyperdrive-expand-url (org-element-property
:path context)))))))
(defun hyperdrive--org-insert-link-after-advice (&rest _)
- [nongnu] elpa/hyperdrive 1fb11bed18 50/82: Fix: (hyperdrive--org-insert-link-after-advice) Preserve description, (continued)
- [nongnu] elpa/hyperdrive 1fb11bed18 50/82: Fix: (hyperdrive--org-insert-link-after-advice) Preserve description, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 505ee2626b 45/82: Change: (hyperdrive--format-entry-url) Hardcode fragment-prefix to #, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 923b1e6371 62/82: Comment: Remove "ing", ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 0b5adb547f 60/82: Test: Insert full "hyper://" links, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dd795f5f2a 53/82: Test: Add tests for storing links, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 990d23ab55 57/82: Test: Rename org-mode/* to org-mode-*, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dc8af9b72c 59/82: Test: Remove roundtrip tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive d704c5a181 64/82: Meta: Update changelog, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive f1bb94bb83 66/82: Change: (hyperdrive-org-link-follow) Don't jump to ID target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 6293463834 67/82: Comment: Add TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 43f50f2ae7 69/82: Change/Fix: (hyperdrive--org-open-at-point) Don't handle fuzzy links,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 27d352dda2 70/82: Comment: Remove TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 5588fb4e1d 71/82: Change/Fix: (hyperdrive--org-link-goto) Don't URI-decode target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dafc7f1b93 72/82: Fix: (hyperdrive--org-link-goto) Use org-link-search, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive c1932fb6fd 74/82: Change: (hyperdrive--org-open-at-point) Include target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 20dd9efc70 76/82: Tidy, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 0a875bef41 78/82: Fix: Docstring, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive fe3c0c374a 79/82: Tests: Add relative/absolute link parsing tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7d06ffd037 80/82: Meta: Update .gitignore, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7826c10faa 81/82: Merge branch 'wip/org-heading-links', ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 903847d50e 82/82: Tidy: Docstrings, comments, ELPA Syncer, 2023/09/25