[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 23bc9dbca3 06/10: Define :help-echo function for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 23bc9dbca3 06/10: Define :help-echo function for Org links |
Date: |
Mon, 9 Sep 2024 03:58:07 -0400 (EDT) |
branch: externals/denote
commit 23bc9dbca31c0b0d8d30b691d7bb0ba366834cb1
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Define :help-echo function for Org links
Thanks to Julian Hoch for asking about this. It was done via a private
channel and I am sharing the information with permission.
---
denote.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/denote.el b/denote.el
index 8d0310d2ad..4a91e5c6bb 100644
--- a/denote.el
+++ b/denote.el
@@ -4942,6 +4942,14 @@ backend."
((eq format 'md) (format "[%s](%s)" desc path))
(t path))))
+(defun denote-link-ol-help-echo (_window _object position)
+ "Echo the full file path of the identifier at POSITION."
+ (when-let ((htmlize-link (get-text-property position 'htmlize-link))
+ (string (plist-get htmlize-link :uri))
+ (identifier (replace-regexp-in-string
"denote:\\(.*?\\)\\(#.*\\)?" "\\1" string))
+ (path (denote-get-path-by-id identifier)))
+ path))
+
;; The `eval-after-load' part with the quoted lambda is adapted from
;; Elfeed: <https://github.com/skeeto/elfeed/>.
@@ -4957,6 +4965,7 @@ backend."
"denote"
:follow #'denote-link-ol-follow
:face 'denote-faces-link
+ :help-echo #'denote-link-ol-help-echo
:complete #'denote-link-ol-complete
:store #'denote-link-ol-store
:export #'denote-link-ol-export)))))
- [elpa] externals/denote updated (3bb05f212c -> fc00f1469b), ELPA Syncer, 2024/09/09
- [elpa] externals/denote ffbb55bbff 01/10: Make denote-rename-file parameters non-optional, ELPA Syncer, 2024/09/09
- [elpa] externals/denote a45d62a64a 03/10: Use denote-retrieve-title-or-filename in denote--rename-file, ELPA Syncer, 2024/09/09
- [elpa] externals/denote 18f92264db 02/10: Make parameters of denote--rename-file accept a keep-current symbol, ELPA Syncer, 2024/09/09
- [elpa] externals/denote 8ac9defa14 04/10: Merge pull request #429 from jeanphilippegg/optional-parameters, ELPA Syncer, 2024/09/09
- [elpa] externals/denote d5cf6222d5 05/10: Make a small rewording to the manual, ELPA Syncer, 2024/09/09
- [elpa] externals/denote fc00f1469b 10/10: Document sample code on how to auto rename a Denote file, ELPA Syncer, 2024/09/09
- [elpa] externals/denote 3226846c0e 07/10: Correct a heading in the manual, ELPA Syncer, 2024/09/09
- [elpa] externals/denote 23bc9dbca3 06/10: Define :help-echo function for Org links,
ELPA Syncer <=
- [elpa] externals/denote efc7ef5e2e 08/10: Note that those who use a custom grep may prefer consult instead, ELPA Syncer, 2024/09/09
- [elpa] externals/denote 4e7b4a9617 09/10: Write top-level heading for packages that build on Denote, ELPA Syncer, 2024/09/09