[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 10d332bb29 11/32: Expand the documentation of us
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 10d332bb29 11/32: Expand the documentation of user option to link to Org heading |
Date: |
Sat, 20 Jan 2024 00:57:41 -0500 (EST) |
branch: externals/denote
commit 10d332bb291c6c1b7624bd11f0d6bcaf8396910c
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Expand the documentation of user option to link to Org heading
---
README.org | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
diff --git a/README.org b/README.org
index 50db8f975f..46621e2119 100644
--- a/README.org
+++ b/README.org
@@ -1736,10 +1736,11 @@ The following sections delve into the details.
#+findex: denote-link
The ~denote-link~ command inserts a link at point to a file specified
-at the minibuffer prompt. Links are formatted depending on the file
-type of the current note. In Org and plain text buffers, links are
-formatted thus: =[[denote:IDENTIFIER][TITLE]]=. While in Markdown
-they are expressed as =[TITLE](denote:IDENTIFIER)=.
+at the minibuffer prompt ([[#h:d99de1fb-b1b7-4a74-8667-575636a4d6a4][The
~denote-link-to-org-headings~ user option]]).
+Links are formatted depending on the file type of the current note. In
+Org and plain text buffers, links are formatted thus:
+=[[denote:IDENTIFIER][TITLE]]=. While in Markdown they are expressed
+as =[TITLE](denote:IDENTIFIER)=.
When ~denote-link~ is called with a prefix argument (=C-u= by
default), it formats links like =[[denote:IDENTIFIER]]=. The user
@@ -1777,6 +1778,9 @@ user/theme in case they want =denote:= links to remain
distinct from
other links.
** The ~denote-link-to-org-headings~ user option
+:PROPERTIES:
+:CUSTOM_ID: h:d99de1fb-b1b7-4a74-8667-575636a4d6a4
+:END:
[ Part of {{{development-version}}}. ]
@@ -1787,9 +1791,22 @@ The heading at point is given a =CUSTOM_ID= value
(included in its
=PROPERTIES= drawer), unless it already has one, in which case it is
taken as-is.
-If nil, only store links to the Denote file (using its identifier),
-but not to the given heading. This is what Denote was doing in
-versions prior to 3.0.0.
+If ~denote-link-to-org-headings~ is set to nil, the command
+~org-store-link~ only store a link to the Denote file (using its
+identifier), but not to the given heading. This is what Denote was
+doing in versions prior to 3.0.0.
+
+When we inspect the links, the difference is this:
+
+- =[[denote:20231125T060608][Some test]]=
+- =[[denote:20231125T060608::#h:eed0fb8e-4cc7-478f-acb6-f0aa1a8bffcd][Some
test]]=
+
+Both lead to the same Denote file, but the latter jumps to the heading
+with the given identifier.
+
+The value of the =CUSTOM_ID= is determined by the Org user option
+~org-id-method~. The sample shown above uses the default UUID
+infrastructure.
This only works in Org mode, as other file types do not have a linking
mechanism that handles unique identifiers for headings or other
- [elpa] externals/denote 524203e403 25/32: Make org-store-link also capture the heading text as part of the description, (continued)
- [elpa] externals/denote 524203e403 25/32: Make org-store-link also capture the heading text as part of the description, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 0d27b6ef20 12/32: Rename user option to denote-org-store-link-to-heading and document it better, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 3e6bf5be6c 21/32: Use denote-link-ol-get-heading instead of the underlying Org function, ELPA Syncer, 2024/01/20
- [elpa] externals/denote d21e5e0644 31/32: Merge pull request #227 from jeanphilippegg/fix-denote--trim-right-token-characters, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 48b8abc43d 29/32: Merge pull request #226 from jeanphilippegg/empty-region-and-links, ELPA Syncer, 2024/01/20
- [elpa] externals/denote a4f11d3a77 32/32: Simplify regexp in denote--trim-right-token-characters, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 3319970d08 02/32: Make links to Org headings only work for Org, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 2957fe832d 04/32: Expand the documentation of user option to link to Org heading, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 10b9b984e4 07/32: Add denote--completion-table-no-sort, ELPA Syncer, 2024/01/20
- [elpa] externals/denote cc393d7616 05/32: Rename user option to denote-org-store-link-to-heading and document it better, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 10d332bb29 11/32: Expand the documentation of user option to link to Org heading,
ELPA Syncer <=
- [elpa] externals/denote 2e04e409ae 13/32: Fix typo in the manual, ELPA Syncer, 2024/01/20
- [elpa] externals/denote cc02a5160d 14/32: Merge branch 'link-to-org-headings' of github.com:protesilaos/denote into link-to-org-headings, ELPA Syncer, 2024/01/20
- [elpa] externals/denote a86267786b 15/32: Add denote-org.el, which defines 'denote-org-link-to-heading' command, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 423122e5e6 17/32: Clarify that org-insert-link is needed after org-store-link, ELPA Syncer, 2024/01/20
- [elpa] externals/denote ff61ed7fed 20/32: Define denote-link-ol-get-heading function, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 8faccbd216 23/32: Mention denote-org-store-link-to-heading in the link handler, ELPA Syncer, 2024/01/20
- [elpa] externals/denote cdb8a19116 26/32: Document the denote-org-link-to-heading command in the manual, ELPA Syncer, 2024/01/20
- [elpa] externals/denote cfd8961ac4 27/32: Mention 'denote-link' in 'denote-org-link-to-heading' doc string, ELPA Syncer, 2024/01/20
- [elpa] externals/denote e11a468873 28/32: Merge pull request #225 from jeanphilippegg/file-name-rules, ELPA Syncer, 2024/01/20
- [elpa] externals/denote 3110c6dd16 30/32: Fix denote--trim-right-token-characters, ELPA Syncer, 2024/01/20