[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote bd14d37c4d 05/10: Make denote-format-link use Or
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote bd14d37c4d 05/10: Make denote-format-link use Org links if FILE-TYPE is nil |
Date: |
Mon, 20 May 2024 00:57:51 -0400 (EDT) |
branch: externals/denote
commit bd14d37c4dcd758c122eb666cb3a4573c382a2af
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-format-link use Org links if FILE-TYPE is nil
---
denote.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/denote.el b/denote.el
index 3d0a4b2071..ee1ad4e2b3 100644
--- a/denote.el
+++ b/denote.el
@@ -3734,9 +3734,16 @@ The format of such links is
`denote-id-only-link-format'." )
FILE-TYPE and ID-ONLY are used to get the format of the link.
See the `:link' property of `denote-file-types'."
(format
- (if (or id-only (null description) (string-empty-p description))
- denote-id-only-link-format
- (denote--link-format file-type))
+ (cond
+ ((or id-only (null description) (string-empty-p description))
+ denote-id-only-link-format)
+ ;; NOTE 2024-05-20: If there is no file type, we want to use the
+ ;; Org format because it is still a usable link with the help of
+ ;; the command `org-open-at-point-global'.
+ ((null file-type)
+ (denote--link-format 'org))
+ (t
+ (denote--link-format file-type)))
(denote-retrieve-filename-identifier file)
description))
- [elpa] externals/denote updated (0b5bc23718 -> ed112050d9), ELPA Syncer, 2024/05/20
- [elpa] externals/denote 84f2f28764 07/10: Add documentation for a global denote-link, ELPA Syncer, 2024/05/20
- [elpa] externals/denote ae8db2eefd 08/10: Remove needless let*, ELPA Syncer, 2024/05/20
- [elpa] externals/denote 8a8bb77578 09/10: Mention denote-link-with-signature in denote-link docstring, ELPA Syncer, 2024/05/20
- [elpa] externals/denote bfee3da14c 06/10: Reword the documentation of denote-link, ELPA Syncer, 2024/05/20
- [elpa] externals/denote d284099a01 01/10: Be more explicit in denote-valid-date-p and handle dates that are empty strings, ELPA Syncer, 2024/05/20
- [elpa] externals/denote 4af0944d13 03/10: Use internal functions in denote and denote-org-capture commands, ELPA Syncer, 2024/05/20
- [elpa] externals/denote 24a1a8c6e2 04/10: Merge pull request #363 from jeanphilippegg/creation-commands, ELPA Syncer, 2024/05/20
- [elpa] externals/denote bd14d37c4d 05/10: Make denote-format-link use Org links if FILE-TYPE is nil,
ELPA Syncer <=
- [elpa] externals/denote ed112050d9 10/10: Add two cross references in the manual for linking individual files, ELPA Syncer, 2024/05/20
- [elpa] externals/denote 623da83a31 02/10: Use denote-parse-date in denote-org-capture, ELPA Syncer, 2024/05/20