[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 360c7d860f 49/82: Add: (hyperdrive--org-link-de
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 360c7d860f 49/82: Add: (hyperdrive--org-link-description) Utility function |
Date: |
Mon, 25 Sep 2023 19:00:53 -0400 (EDT) |
branch: elpa/hyperdrive
commit 360c7d860fb8f2f5f7d92d70e380eb4c093693c8
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Add: (hyperdrive--org-link-description) Utility function
---
hyperdrive-org.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hyperdrive-org.el b/hyperdrive-org.el
index e5fd0bcd6f..2010b7b07e 100644
--- a/hyperdrive-org.el
+++ b/hyperdrive-org.el
@@ -222,6 +222,13 @@ FIXME: Docstring, maybe move details from
`hyperdrive-org-link-full-url'."
(file-name-directory (hyperdrive-entry-path
hyperdrive-current-entry)))))
search-option)))))
+(defun hyperdrive--org-link-description (link)
+ "Return description of Org LINK or nil if it has none."
+ ;; TODO: Is there a built-in solution?
+ (when-let* ((desc-begin (org-element-property :contents-begin link))
+ (desc-end (org-element-property :contents-end link)))
+ (buffer-substring desc-begin desc-end)))
+
;;;###autoload
(with-eval-after-load 'org
(org-link-set-parameters "hyper"
- [nongnu] elpa/hyperdrive 341f145411 33/82: Add: (hyperdrive--ensure-dot-slash-prefix-path), (continued)
- [nongnu] elpa/hyperdrive 341f145411 33/82: Add: (hyperdrive--ensure-dot-slash-prefix-path), ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 696908c87f 35/82: Change: (--org-normalize-link) Remove hyperdrive-entry-equal-p check, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 82f8b9d502 37/82: Fix: (--org-normalize-link) Use current entry, not target entry, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 2a611e471f 42/82: Change: (--org-normalize-link) Add search-option to path link, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 9fd2272ec1 47/82: Change: (--org-shorthand-link) Don't handle full "hyper://" URLs, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive a7bfbf8dee 38/82: Test: -org-link/same-drive-different-path-before-heading, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 04de0cb01a 44/82: Change: (hyperdrive--org-normalize-link) Check search-option first, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 16cdce78bf 40/82: Comment: Add TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 6aa9346618 41/82: Comment: Add TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 18d7821a82 48/82: Test: Add different-drive-different-path-* tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 360c7d860f 49/82: Add: (hyperdrive--org-link-description) Utility function,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 3ea6fa6bc1 51/82: Comment: Correct explanation, ELPA Syncer, 2023/09/25
- [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