[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote cdb8a19116 26/32: Document the denote-org-link-t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote cdb8a19116 26/32: Document the denote-org-link-to-heading command in the manual |
Date: |
Sat, 20 Jan 2024 00:57:43 -0500 (EST) |
branch: externals/denote
commit cdb8a19116a48beb22c66248ff7f7c5849d29d1e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Document the denote-org-link-to-heading command in the manual
---
README.org | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/README.org b/README.org
index 316a79f623..bb153d1efa 100644
--- a/README.org
+++ b/README.org
@@ -1816,12 +1816,44 @@ command ~org-store-link~ only stores 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=.
+Note that the optional extension =denote-org.el= defines the command
+~denote-org-link-to-heading~, which always links to a file+heading
+regardless of the aforementioned user option
([[#h:fc1ad245-ec08-41be-8d1e-7153d99daf02][Insert link to an Org file with a
further pointer to a heading]]).
+
[ This feature only works in Org mode files, as other file types do
not have a linking mechanism that handles unique identifiers for
headings or other patterns to jump to. If ~org-store-link~ is
invoked in one such file, it captures only the Denote identifier of
the file, even if this user option is set to a non-nil value. ]
+** Insert link to an Org file with a further pointer to a heading
+:PROPERTIES:
+:CUSTOM_ID: h:fc1ad245-ec08-41be-8d1e-7153d99daf02
+:END:
+
+[ Part of {{{development-version}}}. ]
+
+#+findex: denote-org-link-to-heading
+As part of the optional =denote-org.el= extension, the command
+~denote-org-link-to-heading~ prompts for a link to an Org file and
+then asks for a heading therein, using minibuffer completion. Once the
+user provides input at the two prompts, the command inserts a link at
+point which has the following pattern:
=[[denote:IDENTIFIER::#ORG-HEADING-CUSTOM-ID]][File title::Heading text]]=.
+
+Because only Org files can have links to individual headings, the
+command ~denote-org-link-to-heading~ prompts only for Org files (i.e.
+files which include the =.org= extension). Remember that Denote works
+with many file types ([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The
file-naming scheme]]).
+
+This feature is similar to the concept of the user option
~denote-org-store-link-to-heading~
+([[#h:d99de1fb-b1b7-4a74-8667-575636a4d6a4][The
~denote-org-store-link-to-heading~ user option]]). It is, however,
+interactive and differs in the directionality of the action. With that
+user option, the command ~org-store-link~ will generate a =CUSTOM_ID=
+for the current heading (or capture the value of one as-is), giving
+the user the option to then call ~org-insert-link~ wherever they see
+fit. By contrast, the command ~denote-org-link-to-heading~ prompts for
+a file, then a heading, and inserts the link at point.
+
** Insert links matching a regexp
:PROPERTIES:
:CUSTOM_ID: h:9bec2c83-36ca-4951-aefc-7187c5463f90
- [elpa] externals/denote 2957fe832d 04/32: Expand the documentation of user option to link to Org heading, (continued)
- [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, 2024/01/20
- [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 <=
- [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