docs/manual/guide/09-links.org

73b5c3d29343d6a3801f3a9a591fa434c01c9f06
orgstar/docs/manual/guide/09-links.org

840 lines · 48129 bytes

  1#+TITLE: Links
  2#+DESCRIPTION: Link syntax, the link types orgstar follows, storing and inserting links, IDs, backlinks and inline images.
  3#+LEDE: Write links as Org does, follow them with a key or a click, and see which headings link to the one you are reading.
  4
  5* Link syntax
  6
  7orgstar reads links the way =org-element-link-parser= does. There are three forms.
  8
  9| Form          | Example                                   | Notes                                                       |
 10|---------------+-------------------------------------------+-------------------------------------------------------------|
 11| Bracket link  | =[[https://orgmode.org][Org website]]=    | Any link type. The description after =][= is optional.     |
 12| Angle link    | =<https://orgmode.org>=                   | For =http=, =https=, =mailto=, =file=, =id=, =doi=, =ftp=, =news=, =shell=, =elisp=, =info=, =help= and =attachment=. |
 13| Plain link    | =https://orgmode.org=                     | Only =https://=, =http://=, =mailto:= and =file:= are recognized in running text. |
 14
 15Inside a bracket link, a target that starts with =/=, =~=, =./= or =../= is a file
 16link. A target in parentheses, =(name)=, is a coderef. One that starts with =#= is a
 17custom ID. Anything without a known =type:= prefix is a search for text in the
 18current file (a "fuzzy" link). A link may run over a line break; the break and
 19surrounding blanks read as one space.
 20
 21Backslashes before brackets are escaped as in =org-link-escape=: when orgstar writes
 22a link it doubles backslashes that come before a bracket or the end, and it reads them
 23back the same way.
 24
 25* How links display
 26
 27With View ▸ Show Markup off (the default, =⇧⌘M= toggles it), a link with a
 28description shows only its description, and its brackets and target are hidden. This
 29is =org-link-descriptive=. The full text appears on the line that holds the caret, so
 30you can edit it. With Show Markup on, every link shows as written. The setting is
 31=show-markup= under =[orgstar]= in the config file (see
 32[[file:13-configuration.org][Configuration]]).
 33
 34Links without a description show their target, with the brackets hidden in the same
 35way. Radio targets (=<<<words>>>=) turn every other occurrence of those words in the
 36file into a link, matched case-insensitively, as in Org.
 37
 38* Following links
 39
 40=org-open-at-point= follows the link at the caret, shows the entry of a citation (see /Citations/ below), or opens the agenda for a timestamp.
 41
 42| Preset | Key                                                                                   |
 43|--------+---------------------------------------------------------------------------------------|
 44| Emacs  | =C-c C-o=                                                                             |
 45| Mac    | =⌃⌘O=                                                                                 |
 46| Doom   | =C-c C-o= in any state; =RET= in normal state follows a link before doing anything else |
 47| All    | =⌘=-click on the link; =o= at the start of a heading line when speed commands are on   |
 48
 49A message in the echo area explains a link that can't be followed.
 50
 51** What each link type does
 52
 53| Link                                         | Example                              | Result                                                                                     |
 54|----------------------------------------------+--------------------------------------+--------------------------------------------------------------------------------------------|
 55| =http=, =https=, =ftp=, =news=, =mailto=     | =[[mailto:me@example.com]]=          | Opened by macOS in your default browser or mail app.                                       |
 56| =doi=                                        | =[[doi:10.1000/182]]=                | Opens =https://doi.org/= followed by the DOI.                                              |
 57| =file= (also =file+sys:=, =file+emacs:=)     | =[[file:notes.org::*Ideas]]=         | See /File links/ below.                                                                 |
 58| =id=                                         | =[[id:6a3c…]]=                       | Opens the file with the heading whose =ID= property matches, and moves to the heading.     |
 59| =roam=                                       | =[[roam:Field Notes]]=               | Opens the org-roam node with that title or alias; see /Nodes and daily notes/ below.       |
 60| Custom ID                                    | =[[#setup]]=                         | Moves to the heading in this file whose =CUSTOM_ID= property is =setup=.                   |
 61| Heading                                      | =[[*Weekly review]]=                 | Moves to the heading in this file with that title.                                         |
 62| Text                                         | =[[budget table]]=                   | Searches this file: a =<<budget table>>= target, then =#+NAME: budget table=, then a heading. |
 63| Coderef                                      | =[[(ref)]]=                          | Moves to the label =(ref:ref)= in a src or example block; see /Code references/ below.      |
 64| Regexp                                       | =[[/TODO.*soon/]]=                   | Shows a sparse tree of the regular expression's matches, as =org-occur=; iOS moves to the first match. |
 65| =zotero=                                     | =[[zotero://select/items/@doe2020]]= | Opens Zotero at the item. Org has no =zotero= link type, so write it in brackets.          |
 66| =shell=                                      | =[[shell:ls]]=                       | Not run. orgstar never executes these links.                                               |
 67| =elisp=                                      | =[[elisp:(+ 1 2)]]=                  | Runs the form once you agree; see /Emacs Lisp links/ below.                                |
 68| =attachment=                                 | =[[attachment:scan.pdf]]=            | Opens the file in the entry's attachment folder; see /Attachment links/ below.             |
 69| Radio link                                   | Text matching a =<<<radio target>>>= | Moves to the radio target.                                                                 |
 70| =info=, =help=, others                       |                                      | Not followed. The echo area says orgstar can't open the type.                              |
 71
 72The text search follows =org-link-search=. A dedicated =<<target>>= matches its words
 73case-insensitively, with any run of blanks between them. A heading matches when its
 74title, with statistics cookies such as =[2/5]= and a leading =COMMENT= removed, has the
 75same words as the link, ignoring case. A search that starts with =*= looks at headings
 76only. A regular-expression search (=/re/=) shows a sparse tree of its matches on the
 77Mac, as =org-occur= does, and moves to the first match on iOS.
 78
 79Following a radio link moves to its =<<<radio target>>>=, matching the words without
 80regard to case, as =org-link--search-radio-target= does. When the target is gone, the
 81echo area shows =No match for radio target:= and the text.
 82
 83** File links
 84
 85A relative path is resolved against the folder of the file that holds the link, as
 86Org does; =~= is your home folder; an absolute path is used as written. Links between
 87files in different sidebar folders work the same way, for example
 88=[[file:../work/projects.org]]= or =[[file:~/Documents/org/inbox.org]]=.
 89
 90What happens depends on the file:
 91
 92- An =.org= or =.org_archive= file opens as a buffer in orgstar.
 93- Another text file opens in orgstar as a plain buffer.
 94- Anything else (images, PDFs, archives, media) is handed to macOS, which opens it in
 95  the default app for that type.
 96
 97If the file doesn't exist, the echo area shows =No file= and the path.
 98
 99After =::=, a file link can carry a search option:
100
101| Option          | Example                          | Moves to                                    |
102|-----------------+----------------------------------+---------------------------------------------|
103| A number        | =[[file:log.txt::120]]=          | Line 120.                                   |
104| =*Title=        | =[[file:notes.org::*Ideas]]=     | The heading with that title.                |
105| =#custom-id=    | =[[file:notes.org::#setup]]=     | The heading with that =CUSTOM_ID=.          |
106| Other text      | =[[file:notes.org::budget]]=     | A target, a =#+NAME= or a heading, as above. |
107
108** Attachment links
109
110An =attachment:= link names a file in the attachment folder of the entry that holds
111the link (see [[file:04-outlines.org][Outlines]] for the attachment commands). Relative folders are resolved
112against the folder of the file that holds the link:
113
1141. When the entry has a =DIR= property, or the older =ATTACH_DIR=, that folder.
1152. Otherwise, for an entry with an =ID=, the first of these folders that exists:
116   =org-attach-id-dir= (=data/=) followed by the ID's first two characters, =/= and
117   the rest of the ID; followed by its first six characters, =/= and the rest;
118   =__/=, the ID's first character, =/= and the whole ID. When =org-attach-id-dir= is
119   something else, the same folders under =data/= are found too.
120
121=org-attach-use-inheritance= decides whether =DIR= and =ID= may come from an ancestor.
122
123When the folder does not exist, the path is relative to the file's own folder. The file then opens as a =file:= link would, and
124a search option after =::= works the same way.
125
126** id links
127
128=id:= links are resolved through the index, so the target heading must be in a file
129under one of your sidebar folders. An =ID= in the property drawer before a file's first
130heading names the file, as org-roam's file nodes do, and the link opens the file. A link
131to an ID that isn't indexed shows =No heading has the ID= followed by the ID.
132
133** denote links
134
135=denote:= links name a Denote note by its identifier, as in
136=[[denote:20261119T120000][A note]]=. The note is the indexed file whose name has the
137identifier, at its start or after =@@=; an Org file comes before others with the same
138identifier, such as a PDF. A search after =::=, such as =::#custom-id= or =::*Heading=,
139works as in a =file:= link. Backlinks list =denote:= links to a file, and to a heading when
140the link searches for it.
141
142In Denote's Markdown and text notes, Open Link (or a =⌘=-click on the Mac) follows
143=[[denote:ID]]= and =[[denote:ID][Title]]=, and in Markdown also Denote's own
144=[Title](denote:ID)=; other links there aren't followed. Backlinks list these notes too.
145
146** Emacs Lisp links
147
148Following an =elisp:= link whose path starts with =(= asks
149=Execute (form) as Elisp? (yes, no, always)=, as =org-link-elisp-confirm-function= does.
150=always= trusts the link's form in this file, so the question isn't asked again until it
151changes. The echo area then shows =(form) => value=, or the error's message.
152
153- On the Mac with Emacs installed, the form runs in =emacs -Q --batch= in a copy of the
154  file, with point at the caret, so Org functions see the file's text. Changes the form
155  makes to the buffer or to files in Emacs's session are not kept.
156- On iOS, in the Mac App Store version, and on the Mac without Emacs, the form runs in
157  orgstar's Emacs Lisp interpreter, with the functions listed under Lisp formulas in
158  [[file:10-tables.org][Tables]]. A form that uses anything else, or a variable it doesn't
159  bind itself, such as =fill-column=, shows
160  =This link uses Emacs Lisp that runs only in Emacs.=
161
162A path that names a command, such as =elisp:org-agenda=, isn't run. The reader view on iOS
163doesn't run =elisp:= links; open the file in the editor.
164
165** Timestamps
166
167=C-c C-o= (Mac =⌃⌘O=) or =⌘=-click on a timestamp opens the agenda on that day, as
168=org-follow-timestamp-link= does. On a date range such as
169=<2026-10-05 Mon>--<2026-10-09 Fri>=, the agenda shows the whole span. See
170[[file:07-agenda.org][Agenda]].
171
172* Inserting and editing links
173
174=org-insert-link= asks for a link and a description in the echo area.
175
176| Preset | Key                          |
177|--------+------------------------------|
178| Emacs  | =C-c C-l=                    |
179| Mac    | =⌘K=                         |
180| Doom   | =SPC m l l=, or =C-c C-l=    |
181
182The first prompt reads =Insert link:=, or =Insert link (default …):= when you have
183stored links. It completes from:
184
185- your stored links, most recent first, and their descriptions;
186- the link abbreviations defined in the file (see /Link abbreviations/);
187- the link types =attachment=, =id=, =eww=, =rmail=, =mhe=, =irc=, =info=, =gnus=, =docview=,
188  =bibtex=, =bbdb=, =w3m=, =doi=, =file+sys=, =file+emacs=, =shell=, =news=, =mailto=,
189  =https=, =http=, =ftp=, =shortdoc=, =help=, =file= and =elisp=, each followed by =:=.
190
191Pressing Return on an empty answer inserts the most recent stored link. Choosing a
192description inserts the link it belongs to. If you choose a bare type such as =https:=,
193a second prompt, =Link (no completion support):=, asks for the rest.
194
195The next prompt, =Description:=, offers the stored link's description, or the
196selected text if you selected some before running the command. An empty description
197inserts a link without one. With text selected, the link replaces the selection.
198
199When the caret is on an existing link, the same command edits it: the =Link:= prompt
200starts with the current target and =Description:= with the current description.
201
202A stored link that you insert is removed from the stored list, as with
203=org-link-keep-stored-after-insertion= set to nil.
204
205** File paths in inserted links
206
207When the inserted link is a =file:= link, orgstar rewrites it as
208=org-link-make-string-for-buffer= does:
209
210- A link to a heading or target in the file you are editing loses its =file:= part
211  and keeps only the search, for example =[[*Ideas]]=.
212- A path under the current file's folder becomes relative to it.
213- Any other path is written with =~= for your home folder.
214
215** Completion while typing
216
217You can also type a link by hand. With the caret right after =[[=, completion at point
218offers =attachment:=, =doi:=, =file:=, =http:=, =https:=, =id:= and =mailto:=, plus
219the file's link abbreviations. After =[[*=, it offers the headings of the current file.
220After =@= in a citation, it offers the keys of the file's bibliographies (see /Citations/).
221Completion at point is =C-M-i= in the Emacs preset and =C-SPC= in Doom's insert state;
222see [[file:02-the-editor.org][The editor]].
223
224* Storing links
225
226=org-store-link= remembers a link to where the caret is, for a later Insert Link.
227
228| Preset | Key                                   |
229|--------+---------------------------------------|
230| Emacs  | =C-c l=                               |
231| Mac    | =⌃⌘L=                                 |
232| Doom   | =SPC m l s= or =SPC n l=              |
233
234The stored link is a =file:= link to the current file, written with =~= for your home
235folder, followed by a search option chosen as Org does with
236=org-link-context-for-files= on:
237
2381. If the caret touches a =<<target>>= on its line, the link points at the target.
2392. Otherwise, if text is selected, the link searches for that text.
2403. Otherwise, if the caret is in an element with a =#+NAME=, the link uses the name.
2414. Otherwise, inside a heading's entry, the link uses =#custom-id= if the heading has a
242   =CUSTOM_ID= property, and =*Title= if not. The title becomes the description.
2435. Before the first heading, the link searches for the text of the current line.
244
245The echo area shows =Stored:= and the description or link. Storing the same link again
246moves it to the front of the list. Stored links last until you quit orgstar; they
247aren't saved between sessions, as in Emacs.
248
249* IDs
250
251Org identifies headings across files with an =ID= property. Two commands manage it.
252
253| Command               | Org function                          | Keys                              |
254|-----------------------+---------------------------------------+-----------------------------------|
255| Org ▸ Create ID       | =org-id-get-create=                   | No default key                    |
256| Org ▸ Store ID Link   | =org-id-get-create= + =org-id-store-link= | Doom =SPC m l i=; no key in Emacs or Mac |
257
258Create ID gives the heading at the caret an =ID= property if it doesn't have one. The
259ID is a new UUID in lower case, for example =6a3c2f9e-…=, as =org-id-uuid= makes them. Before the first heading,
260the property goes into the file-level property drawer.
261
262Store ID Link does the same, then stores an =id:= link to the heading with its title
263as the description. Before the first heading, the description is the =#+TITLE=, or
264the file name. If the caret is on a target or named element inside the entry, the
265link carries that search, as =id:…::search=, which mirrors =org-id-link-use-context=.
266
267=CUSTOM_ID= is a property you set yourself, with the property commands in
268[[file:04-outlines.org][Outlines]]. Link to it with =[[#name]]= in the same file or
269=[[file:other.org::#name]]= from another. Store Link uses it when the heading has one.
270
271* Targets and radio targets
272
273=<<target>>= marks a place in the text that a link with the same words reaches:
274=[[target]]=. Store Link with the caret on a target stores a link to it.
275
276=<<<radio target>>>= makes every other occurrence of its words in the file a link,
277matched case-insensitively and between non-word characters. Radio links are
278highlighted as links and exported as links to the target (see
279[[file:12-export.org][Export]]). Following one moves to the radio target.
280
281* Link abbreviations
282
283A =#+LINK:= line defines an abbreviation, as =org-link-abbrev-alist-local= does:
284
285#+BEGIN_SRC org
286,#+LINK: gh https://github.com/%s
287,#+LINK: search https://duckduckgo.com/?q=%h
288,#+LINK: wiki https://en.wikipedia.org/wiki/
289
290[[gh:orgmode/org-mode]]   → https://github.com/orgmode/org-mode
291[[search:org tables]]     → https://duckduckgo.com/?q=org%20tables
292[[wiki:Org-mode]]         → https://en.wikipedia.org/wiki/Org-mode
293#+END_SRC
294
295In the template, =%s= is replaced by the text after the colon, =%h= by the same text
296percent-encoded, and a template with neither has the text appended. Function
297templates (=%(…)=) are not supported. Abbreviations from a =#+SETUPFILE= count too.
298When a key is defined twice, the first definition wins.
299
300* The backlinks pane
301
302View ▸ Show Backlinks shows a pane under the outline pane of an org file. It
303has two sections:
304
305- *Links to* the heading at the caret, named after that heading.
306- *Links to This File*.
307
308Each row shows the linking heading, the line the link is on with links shown as they read
309and this one in bold, and the file name; a link in the text before a file's first heading is
310listed under the file's name. Click a row to open it. When nothing links to the file
311or the heading, the pane shrinks to one line, =Links to This File= =None=. The
312pane is shown by default, orgstar remembers whether it is shown, and it updates as
313you move the caret and edit.
314
315The pane looks at every org file in your sidebar folders, including unsaved changes
316in open buffers. A link counts when following it would lead to the heading or the
317file:
318
319- =id:= links to the heading's =ID=, or to the file's own =ID= for the file section;
320- =file:= links and plain paths (=./=, =../=, =/=, =~/=) to the file, with no search
321  option for the file section, or with =::*Title=, =::#custom-id= or =::Title= for a
322  heading;
323- within the same file, =[[*Title]]=, =[[#custom-id]]= and =[[Title]]=.
324
325Links to targets, names and line numbers are not counted. A heading's links to itself
326are left out.
327
328* Nodes and daily notes
329
330orgstar works with notes kept the org-roam way: headings and files with an =ID= are
331/nodes/, linked with =id:= links, and a daily note is a file a day. It reads them from
332the index, without org-roam's database.
333
334| Command | Emacs | Doom | What it does |
335|-+-+-+-|
336| Find Node… | =C-c n f= | =SPC n r f= | Asks for a node by title or alias and opens it (=org-roam-node-find=). |
337| Find Ref… | — | =SPC n r F= | Asks for one of the nodes' refs and opens its node (=org-roam-ref-find=). |
338| Insert Node Link… | =C-c n i= | =SPC n r i= | Asks for a node and inserts =[[id:…][Title]]=, with the alias as the description when an alias was chosen; with a selection, the selection is the description (=org-roam-node-insert=). |
339| Show Node Graph | =C-c n g= | =SPC n r g= | Opens the graph of nodes and their links; see /The graph/ below. |
340| Go to Today's, Yesterday's, Tomorrow's Daily Note | =C-c n d d=, =y=, =t= | =SPC n r d t=, =y=, =m= | Opens the day's note, making it if missing (=org-roam-dailies-goto-today= and the others). |
341| Go to Daily Note for Date… | =C-c n d c= | =SPC n r d d= | Asks for a date, then opens its note. |
342| Capture to Today's Daily Note (and Yesterday's, Tomorrow's, for Date…) | =C-c n j=, =C-c n d n=, =C-c n d v= | =SPC n r d n=, =T=, =Y=, =M=, =D= | Files the entry template at the end of the day's note and opens it at =%?= (=org-roam-dailies-capture-today= and the others). |
343| Next Daily Note, Previous Daily Note | =C-c n d f=, =b= | =SPC n r d f=, =b= | From a daily note, opens the next or previous one there is (=org-roam-dailies-goto-next-note=). |
344
345The keys are the ones org-roam's manual suggests for Emacs and Doom's. A file node's
346title is its =#+TITLE=, or its name. The node properties are read as org-roam 2.3 reads them:
347
348- =ROAM_ALIASES=: other titles for the node, separated by spaces, with quotes around one
349  that has spaces (="Alias One" two=). Each alias is listed in the chooser as a title of
350  its own.
351- =ROAM_REFS=: links and citation keys the node stands for, such as
352  =https://example.com @key2020 [cite:@key2021]=. Find Ref… lists them.
353- =ROAM_EXCLUDE=: with any value but =nil=, the heading or file isn't a node. It isn't
354  inherited: the headings under an excluded one with an =ID= are still nodes.
355- Tags: a file node's are its =#+FILETAGS=; a heading's are its own and those it inherits.
356  The chooser shows them after the title, as =#tag=, as Doom's chooser does, and typing a
357  tag finds its nodes.
358
359Names that repeat show their file's name. A =[[roam:Title]]= link opens the node with that
360title or alias, as =org-roam-link-follow-link= does.
361
362A title that no node has opens the capture window with the =[[roam-template]]= templates
363from =capture.toml=, as =org-roam-capture-= does: choose one when there are several, answer
364its prompts, edit the text, and press Capture (=⌘Return= on the Mac) to make the node, or
365Cancel to make nothing. Find Node… then opens the node; Insert Node Link… links to it. Without
366templates, org-roam's default is used:
367
368#+BEGIN_SRC toml
369[[roam-template]]
370key = "d"
371name = "default"
372type = "plain"                          # entry, item, checkitem, plain or table-line
373template = "%?"
374file = "%<%Y%m%d%H%M%S>-${slug}.org"    # in org-roam-directory
375head = "#+title: ${title}\n"            # at the top of a new file
376#+END_SRC
377
378=olp = "Projects/Active"= files the text under that outline path, making the headings that
379are missing (=file+head+olp=). A new file starts with an =ID= property drawer and the head;
380a file that's there gets an =ID= when it has none, and is the node. =${title}=, =${slug}=
381and =${id}= are the node's title, slug and =ID=; =%<…>= and the other escapes are
382org-capture's (see [[file:08-capture.org][Capture]]), and =immediate-finish=, =prepend= and the other
383template properties apply. The slug is the title in lower case, accents dropped, with
384everything but letters and digits as one =_=, as =org-roam-node-slugify= makes it.
385
386org-protocol's =roam-ref= opens the node whose =ROAM_REFS= has the =ref=, and otherwise
387makes one in the capture window with =[[roam-ref-template]]= (only the one keyed =template=
388when the link names one), with the ref in its =ROAM_REFS=. Without templates, org-roam's
389default makes =${slug}.org= with =#+title: ${title}=; =${ref}= and =${body}= are the link's
390=ref= and =body=. =roam-node= opens the node with the =node= ID:
391
392#+BEGIN_SRC text
393org-protocol://roam-ref?template=r&ref=https%3A%2F%2Fexample.com&title=Example
394org-protocol://roam-node?node=5f0c1e2a-…
395#+END_SRC
396
397*The graph.* Show Node Graph, or Window ▸ Node Graph on the Mac and Commands on iOS, draws every node as a dot and every =id:= link between two nodes as a line. It is part of orgstar+.
398
399- A link belongs to the innermost heading with an ID around it, else to its file's node; a link written where there is no node, or to an ID no node has, isn't drawn. Several links between the same two nodes are one line.
400- A dot is larger the more links its node has. The node the caret is in is orange. Titles are drawn where they have room, the most-linked nodes first; zooming in shows more.
401- Drag to move the picture, pinch or use the buttons to zoom, and click or tap a node to open it.
402- Only the Open Note's Links keeps the node the caret is in and the nodes linked with it.
403- Unsaved text counts, as it does for Find Node….
404
405Daily notes are in =org-roam-dailies-directory= (=daily/=) under =org-roam-directory=,
406which is the first sidebar folder unless set. A new note is named and started as
407org-roam's default daily template does it, with an =ID= like every new org-roam file:
408
409#+BEGIN_SRC org
410,:PROPERTIES:
411,:ID:       5f0c1e2a-…
412,:END:
413,#+title: 2026-10-11
414#+END_SRC
415
416=org-roam-dailies-file= (="%<%Y-%m-%d>.org"=), =org-roam-dailies-head=
417(="#+title: %<%Y-%m-%d>\n"=) and =org-roam-dailies-entry= (="* %?"=) change the file name,
418what a new note starts with, and what capturing adds; =%<…>= formats the note's date as
419=format-time-string= does. The entry is an org-capture template; its date escapes
420(=%t=, =%U= and the like) use the note's day. See [[file:13-configuration.org][Configuration]].
421
422For several daily templates, =[[roam-dailies-template]]= tables in =capture.toml= take the
423place of those three settings, as =org-roam-dailies-capture-templates= does. They have the
424keys of =[[roam-template]]=; =type= is =entry= unless set, and =file= is in the daily-notes
425folder. Capturing opens the capture window with them: choose one, edit the entry, and Capture
426files it in the day's note, making the note with the template's head when it's new. The go-to
427commands ask which template only when the templates name different files. Import from Emacs
428reads one =(file+head NAME HEAD)= template into the three settings, and several into tables.
429
430** Denote
431
432With =notes-package = "denote"= in =config.toml=, the same commands follow Denote:
433
434- The graph draws the notes with a Denote identifier and their =denote:= links to each other.
435- Find Node… and Insert Node Link… list the Org, Markdown (=.md=) and text (=.txt=) files
436  whose names have a Denote identifier, titled by their front matter's title, and Insert
437  Node Link… inserts =[[denote:…][Title]]=, or =[Title](denote:…)= in a Markdown note.
438- A title no note has makes a note in =denote-directory= (the first folder unless set),
439  after the questions =denote-prompts= lists, in its order. The default is
440  ="title keywords"=; the title is always the one typed.
441  - =keywords=: separated by commas or spaces, offering the keywords in existing file
442    names.
443  - =subdirectory=: a folder under =denote-directory= (=.= for itself) to put the note in.
444  - =date=: the note's date, read as =org-read-date= reads one; without a time, the time
445    is now's.
446  - =template=: a key of =[denote-templates]=, whose text goes after the front matter.
447  - =signature=: put in the name after ~==~, in lower case with ~=~ between words, and
448    in a =#+signature:= line.
449
450  =file-type= and =identifier= are not asked: a note is in the file type
451  =denote-file-type= sets (Org unless set; see /Markdown and text notes/ below), and the
452  identifier is the date's, or the first second after it no file under
453  =denote-directory= has. With the default prompts:
454
455  #+BEGIN_SRC org
456  ,#+title:      Field Notes
457  ,#+date:       [2026-11-19 Thu 12:00]
458  ,#+filetags:   :ideas:work:
459  ,#+identifier: 20261119T120000
460  #+END_SRC
461
462  named =20261119T120000--field-notes__ideas_work.org=: the title in lower case without
463  punctuation, words joined by =-=; the keywords sorted, each one word, joined by =_=.
464- The daily-note commands work on denote-journal's entries: notes in
465  =denote-journal-directory= (=journal=, under =denote-directory=) with the
466  =denote-journal-keyword= (=journal=). With =denote-journal-interval= (=daily=), one entry
467  lasts a day, a week (Monday to Sunday), a month or a year, and the entry for a date is
468  the one whose identifier's date is in that stretch. denote-journal itself takes a date
469  outside the current week, month or year as today; orgstar uses the date's own. A new
470  entry is titled by =denote-journal-title-format= (="%A %-e %B %Y %H:%M"=). Capturing
471  adds =org-roam-dailies-entry= as for org-roam.
472- Store Link in a Denote note stores =[[denote:ID][Title]]=, or =denote:ID::#custom-id=
473  in an entry with a =CUSTOM_ID=, as Denote does with =denote-org-store-link-to-heading=
474  nil.
475
476=denote-directory= can hold several folders, separated by =:=. New notes go in the first;
477the =subdirectory= question offers all of them and their folders, and identifiers are
478kept unique across them.
479
480*** Renaming
481
482- Rename Note… (=denote-rename-file=) asks the questions =denote-prompts= has among
483  =title=, =keywords=, =signature= and =date=, each starting with the current value, then
484  renames the file in its folder and rewrites its front matter. Empty answers remove a
485  part. A file without an identifier gets one from its modification time; a file
486  without front matter gets it added at the top.
487- Rename Note from Front Matter renames the open file from its =#+title:=,
488  =#+filetags:= and =#+signature:=, keeping its identifier, as
489  =denote-rename-file-using-front-matter= does. A missing line leaves that part out of
490  the name. The keywords are sorted, and the front matter is rewritten from what was
491  read: keywords sorted and in lower case, the signature as it is in the name, and an
492  =#+identifier:= line added when there was none.
493- Rename Notes in Folder from Front Matter… does that for every Denote note in a
494  folder of =denote-directory=, as =denote-dired-rename-marked-files-using-front-matter=
495  does with them all marked.
496
497Links keep working after a rename, as they use the identifier.
498
499*** Markdown and text notes
500
501Denote's =markdown-yaml=, =markdown-toml= and =text= file types are read and written
502with their own front matter. With =denote-file-type = "markdown-yaml"= in =config.toml=, a
503new note is =20261119T120000--field-notes__ideas_work.md= and starts:
504
505#+BEGIN_SRC yaml
506---
507title:      "Field Notes"
508date:       2026-11-19T12:00:00+01:00
509tags:       ["ideas", "work"]
510identifier: "20261119T120000"
511---
512#+END_SRC
513
514=markdown-toml= writes the same lines between =+++= lines, as =title      = "Field Notes"=
515and so on. =text= makes a =.txt= note:
516
517#+BEGIN_SRC text
518title:      Field Notes
519date:       2026-11-19
520tags:       ideas  work
521identifier: 20261119T120000
522---------------------------
523#+END_SRC
524
525A =signature:= line follows the identifier when the note has one. A =.md= file is YAML
526when it starts with =---= and TOML when it starts with =+++=; one with neither takes
527=denote-file-type= when that is a Markdown type, else YAML.
528
529In these notes:
530
531- Find Node…, Insert Node Link…, the graph and backlinks work as for Org notes; on the
532  Mac the backlinks pane shows under the outline for them too. Insert
533  Node Link… writes =[Title](denote:ID)= in Markdown and =[[denote:ID][Title]]= in text, as
534  Denote's =denote-md-link-format= and =denote-org-link-format= do; =[[denote:ID]]= when
535  there is no title.
536- Open Link follows =denote:= links (see /denote links/ above).
537- Rename Note…, Rename Note from Front Matter and Rename Notes in Folder from Front
538  Matter… rename them and rewrite their front matter in its own format: Markdown values
539  in double quotes, keywords as =["a", "b"]= in Markdown and separated by two spaces in
540  text, the date as RFC 3339 (=2026-11-19T12:00:00+01:00=) in Markdown and =2026-11-19= in
541  text. A line that is there keeps its key and spacing. A file without front matter gets
542  it at the top.
543
544Otherwise they are Markdown and text files as described in [[file:01-files-and-folders.org][Files and folders]]: org's
545commands, Store Link, the sequence commands and denote-org's blocks aren't available in
546them. Capture templates with =denote = true= and denote-journal's entries are always Org
547notes, since they file org entries, as Denote's =denote-org-capture= does.
548
549*** Query links
550
551=[[denote:query-contents:REGEXP]]= and =[[denote:query-filenames:REGEXP]]= offer the
552notes whose text, or name, the Emacs regexp matches, ignoring case, and open the one
553chosen. In the iOS reader they list the matches.
554
555*** Silos
556
557New Note in Silo… and Find Note in Silo… (denote-silo) ask for a folder of
558=denote-silo-directories= (=denote-directory='s folders unless set, separated by =:=)
559and work as if it were =denote-directory=. Find Note in Silo… lists the notes in the
560sidebar folders that are under it.
561
562*** Capture
563
564A capture template with =denote = true= and no =file= puts its entry in a new note, as
565=denote-org-capture= does: it asks for the title and the =denote-prompts= questions before
566its own. See [[file:08-capture.org][Capture]].
567
568#+BEGIN_SRC toml
569[[template]]
570key = "n"
571name = "New note"
572denote = true
573type = "plain"
574template = "%i\n%?"
575#+END_SRC
576
577*** Dynamic blocks
578
579denote-org's dynamic blocks update with =C-c C-c= on their =#+BEGIN:= line or Update
580Dynamic Block, over the files in =denote-directory=:
581
582| Block | What it lists |
583|-------+---------------|
584| =denote-links= | Links to the notes whose names (relative to =denote-directory=) match =:regexp= |
585| =denote-missing-links= | The same, without the notes this file links to already |
586| =denote-backlinks= | Links to the notes that link to this one |
587| =denote-files= | The text of the notes matching =:regexp= |
588| =denote-files-as-headings= | The same, each note's title a heading and its headings one level down |
589| =denote-sequence= | A note's descendants, =:depth= levels deep, indented; with =:sequence ""= every note with a sequence |
590
591Insert Denote Links Block, Insert Denote Missing Links Block, Insert Denote Backlinks Block,
592Insert Denote Files Block, Insert Denote Files as Headings Block and Insert Denote Sequence
593Block (=denote-org-dblock-insert-links= and the others) ask what denote-org asks (the
594regexp; for files, the sort component; for a sequence, the note and the depth, 2 by
595default), then insert the block with all its parameters and fill it.
596
597They take denote-org's parameters: =:not-regexp=, =:sort-by-component= (=title=,
598=keywords=, =signature=, =identifier=, =last-modified=, =random=), =:reverse-sort=,
599=:id-only=, =:include-date=, =:block-name=, and for =denote-files= =:no-front-matter=,
600=:add-links= and =:file-separator=, for =denote-files-as-headings= =:add-links= and
601=:exclude-tags=. =:excluded-dirs-regexp=, =:this-heading-only= and =rx= forms aren't
602supported.
603
604#+BEGIN_SRC org
605,#+BEGIN: denote-links :regexp "_emacs" :sort-by-component title
606,#+END:
607#+END_SRC
608
609*** Sequences
610
611denote-sequence numbers notes in a hierarchy through their signatures, in the scheme
612=denote-sequence-scheme= sets: =numeric= (~1~, ~1=1~, ~1=1=2~), =alphanumeric= (~1~,
613~1a~, ~1a2~) or =alphanumeric-delimited= (~1~, ~1=a~, ~1=a2~). New sequences come out
614as denote-sequence 0.3 gives them.
615
616| Command | denote-sequence |
617|---------+-----------------|
618| New Sequence Note… | =denote-sequence-new-parent= |
619| New Child Sequence Note…, New Sibling Sequence Note… | =denote-sequence-new-child=, =-new-sibling= |
620| New Child of This Note…, New Sibling of This Note… | =denote-sequence-new-child-of-current=, =-new-sibling-of-current= |
621| Find Sequence Relatives… | =denote-sequence-find=: all parents, the parent, siblings, children or all children |
622| Next Sibling Note, Previous Sibling Note | =denote-sequence-find-next-sibling=, =-previous-sibling= |
623| Reparent Note…, Reparent Note with Descendants… | =denote-sequence-reparent=, =-reparent-recursive= |
624| Rename Note as Sequence Parent | =denote-sequence-rename-as-parent= |
625| Convert Note Sequence Scheme | =denote-sequence-convert= to =denote-sequence-scheme= |
626| Insert Sequence Link… | =denote-sequence-link= |
627| Sequence Hierarchy… | =denote-sequence-view-hierarchy=, as a list to open a note from |
628
629A new sequence note asks for its title and the =denote-prompts= questions other than
630=signature=, which is the sequence.
631
632*** Importing and limits
633
634Import from Emacs reads =denote-directory= (a folder or a list), =denote-file-type=,
635=denote-prompts=, =denote-templates=, =denote-silo-directories=,
636=denote-sequence-scheme=, =denote-journal-directory=, =denote-journal-keyword=,
637=denote-journal-interval= and =denote-journal-title-format=. Templates that are functions,
638file types added to =denote-file-types=, =denote-date-format= and the =file-type= prompt
639are not supported.
640
641* Inline images
642
643=org-toggle-inline-images= shows image links as images.
644
645| Preset | Key                                          |
646|--------+----------------------------------------------|
647| Emacs  | =C-c C-x C-v=                                |
648| Mac    | Org ▸ Show or Hide Inline Images             |
649| Doom   | =C-c C-x C-v=                                |
650
651The echo area reports how many images are shown, or that inline display is off.
652
653A link without a description shows an image when it points to a file ending in =.png=,
654=.jpg=, =.jpeg=, =.gif=, =.svg=, =.webp=, =.tif=, =.tiff=, =.bmp=, =.heic= or =.avif= (in
655any case), on a line of its own or in a line's text:
656
657#+BEGIN_SRC org
658[[file:images/diagram.png]]
659[[./photo.jpg]]
660See [[file:images/plot.png]] and file:images/detail.png here.
661#+END_SRC
662
663Relative paths are resolved against the file's folder, and =attachment:= links against the
664entry's attachment folder. The link text is hidden while the image is shown, except on the
665line that holds the caret, where the image is drawn under the link or under its paragraph.
666
667A link with a description shows an image when the description is one =file:= or
668=attachment:= link to an image, as in =[[https://example.com][file:thumbnail.png]]=. Show
669or Hide Inline Images, Including Described Links (=C-u C-c C-x C-v= in the Emacs preset)
670shows the image any described link points to. See [[file:02-the-editor.org::*Inline images][Inline images]].
671
672** Pasting and dropping images
673
674Paste (⌘V, or Edit ▸ Paste on iOS) with an image on the clipboard and no text runs
675=yank-media=, as in Emacs 29 and later: the image is saved as =org-yank-image-save-method=
676says and a link to it is inserted at the caret; with the caret on a heading's line, under the heading, after its planning line and drawers. M-x =yank-media= does the same on the Mac.
677
678| =org-yank-image-save-method= | Where the image goes                                                     | Link                    |
679|------------------------------+--------------------------------------------------------------------------+-------------------------|
680| =attach= (the default)       | The entry's attachment folder, as =org-attach-attach= puts it            | =[[attachment:NAME]]=   |
681| a folder, such as ="images/"= | That folder, relative to the file's folder unless absolute; made if missing | =[[file:images/NAME]]= |
682
683The name is Org's: =clipboard-= and the time, as in =clipboard-20261011T232238.png=; a
684second image in the same second gets =-2=. PNG, JPEG and GIF are saved as they are, and
685other image types as PNG. Before the first heading, =attach= gives the file a file-level
686=ID=, as Emacs does.
687
688Files dropped on the editor on the Mac, or pasted after copying them in Finder, are handled
689as =org-yank-dnd-method= says: =attach= copies them into the entry's attachment folder (an
690image goes to the =org-yank-image-save-method= folder when that is a folder), =file-link=
691links to them where they are, =open= opens them, and =ask=, the default, asks which. An
692image dragged in without a file, such as one from a browser, is pasted as above. On iOS,
693dropped files are always attached, since what a drop hands over is a copy. Attach Photo or
694Video… and Take Photo… also insert their links at the caret.
695
696Two things differ from Emacs, so that a pasted image shows at once: the link has no
697description (Org writes =[[attachment:NAME][NAME]]=, which inline display skips), and it
698goes on a line of its own, breaking the line around the caret when it holds text.
699
700** Remote images
701
702Images at =http= and =https= links show as =org-display-remote-inline-images= in
703=config.toml= says:
704
705| Value      | Remote images                                                                |
706|------------+------------------------------------------------------------------------------|
707| =skip=     | Not shown; the default                                                       |
708| =download= | Fetched the first time they're shown, and kept until orgstar quits           |
709| =cache=    | Fetched once and kept on disk, in the app's cache folder, for later launches |
710
711#+BEGIN_SRC org
712[[https://example.com/chart.png]]
713#+END_SRC
714
715An image is fetched in the background; the link shows as text until it arrives. A link
716that can't be fetched stays text, and isn't tried again until orgstar starts again. This
717applies to the editor on the Mac and iOS and to the iOS reader. Emacs's =download=
718fetches the image each time it's displayed; orgstar keeps it for the session instead.
719
720** Sizing
721
722An image is drawn at its own width, up to the width of the text area. To set a width,
723put =#+ATTR_ORG: :width= with a number of points among the keywords above the link:
724
725#+BEGIN_SRC org
726,#+CAPTION: Network layout
727,#+ATTR_ORG: :width 300
728[[file:images/network.png]]
729#+END_SRC
730
731The height follows the image's proportions. =#+ATTR_HTML= and other exporters'
732attributes don't affect the editor.
733
734** Showing images when a file opens
735
736The config key =org-startup-with-inline-images= (default =false=) shows images in
737every file when it opens. In a file, =#+STARTUP: inlineimages= or
738=#+STARTUP: noinlineimages= overrides it.
739
740* org-protocol store-link
741
742orgstar handles =org-protocol://store-link= URLs, in the new form
743~org-protocol://store-link?url=…&title=…~ and the old form
744=org-protocol://store-link:/URL/TITLE=. The URL is added to your stored links with
745the title as its description, and is also copied to the clipboard. Insert it with
746Insert Link. Setting up a browser bookmarklet, and =org-protocol://capture=, are in
747[[file:08-capture.org][Capture]].
748
749* Citations
750
751A citation, =[cite:@key]=, names an entry of the bibliography files the file lists with
752=#+bibliography:= lines, or of those =org-cite-global-bibliography= lists for every file
753(see [[file:13-configuration.org][Configuration]]). The citation syntax and how citations
754export are in [[file:12-export.org][Export]]. A file ending in =.json= is read as CSL-JSON;
755anything else as BibTeX or BibLaTeX, with =@string= abbreviations expanded and the fields an
756entry lacks taken from the entry its =crossref= field names (whose =title= becomes the
757=booktitle=). Bibliography files are read in the background, and read again only when they
758change. In the Mac App Store version, a bibliography outside your sidebar folders asks for
759access to its folder the first time.
760
761** Inserting citations
762
763Insert Citation… (Org ▸ Links and Footnotes on the Mac, Commands on iOS) is =org-cite-insert=
764with the basic processor.
765
766| Preset | Key                         |
767|--------+-----------------------------|
768| Emacs  | =C-c C-x @=                 |
769| Mac    | none; Org menu or palette   |
770| Doom   | =SPC m @=                   |
771
772What it does depends on where the caret is:
773
774- Outside a citation, it asks for an entry (=Key:=, each key with its authors, year and
775  title), then a prefix, a suffix and a style (=author=, =noauthor=, =nocite=, =note=,
776  =numeric=, =text= or =nil=), and inserts =[cite/style:prefix @key suffix]=. An empty answer
777  leaves out the prefix, the suffix or the style.
778- On a citation's =[cite/style= part, it asks only for a style and puts it in place of the
779  old one; an empty answer removes it.
780- On the citation's common prefix or before a reference's =@=, it adds the chosen key, with
781  the prefix and suffix around it, before that reference; on a reference's suffix or the
782  common suffix, after it. References are separated by =;=.
783- Inside a key, the chosen key replaces it; the reference's prefix and suffix stay.
784
785Without bibliography files, the echo area says =No bibliography set=. Where orgstar differs
786from Emacs:
787
788- It inserts one key at a time. Run it again inside the citation to add another; Emacs asks
789  for keys until an empty answer.
790- It always asks for a style for a new citation; Emacs asks only after =C-u=. The prefix and
791  suffix questions are orgstar's.
792- =C-u= doesn't delete the citation or reference at the caret.
793
794** Completing keys
795
796Inside a citation, completion at point after =@= offers the keys of the file's
797bibliographies, each with its authors, year and title.
798
799** Following citations
800
801=C-c C-o= (Mac =⌃⌘O=), =⌘=-click, and =RET= in Doom's normal state show a citation's entry:
802its authors, year, title and where it was published. Its buttons open the files in the
803entry's =file= field, its DOI and its URL, and Show in Bibliography opens the bibliography
804file at the entry, which is what =org-cite-basic-goto= does in Emacs. On a reference the
805entry is that key's; elsewhere in a citation with several keys, you choose a key first. A key
806no bibliography has shows =Cannot find citation key:= and the key.
807
808The =file= field may list several files, separated by =;=. Each is a path or JabRef's and
809Zotero's =description:path:type=, relative to the bibliography's folder unless absolute.
810
811** Zotero
812
813Better BibTeX for Zotero can keep a =.bib= file exported from your library up to date
814(Export Library, with Keep updated). List that file in =#+bibliography:= or
815=org-cite-global-bibliography= like any other; orgstar reads it again when Zotero rewrites
816it. =[[zotero://select/items/@key]]= links, with Better BibTeX's citation keys, open the
817item in Zotero on the Mac; on iOS the link is handed to the system, which opens the Zotero
818app if it is installed and handles the address.
819
820* On iOS
821
822The iOS app follows links: tap a link in the reader. Org files open in the app, and
823web, mail and other files go to the system. The iOS editor shows inline images as the
824Mac does, and so does the reader, except in headings. In the editor, Store Link, Store ID Link, Insert Link… and Insert Citation…
825are in Commands, and on a hardware keyboard the Emacs keys run them; they work as
826described above, and stored links last until the app quits. Open Link in Commands shows
827the entry of the citation at the caret. The app reads only bibliography files in its
828folders. =org-protocol://store-link=
829links opened on the device are stored and copied too. Show Backlinks in Commands lists the same
830links as the Mac's backlinks pane, for the heading at the caret and the file. See
831[[file:14-ios.org][iOS]].
832
833* Code references
834
835A label at the end of a line in a src or example block, =(ref:name)= by default, is a code reference, and =[[(name)]]= links to it. Following the link moves to the label. A block's =-l "<<%s>>"= switch changes the label's form for that block; =%s= is the name.
836
837In export, the label is taken off the line. A block with =-n= numbers its lines from 1, or =-n 10= from 10; =+n= goes on from the numbers of the blocks before it. =-r= leaves the label out of the exported line, and then the link shows the line's number instead of the name; =-k= with =-n= keeps the label while the link still shows the number. A link's description may contain =%s= for the name or number: =[[(call)][line %s]]=. In HTML, the line with the label is the link's target, =coderef-name=.
838
839A regexp link, or a =file:…::/regexp/= search, exports as its description, or its text when it has none.
840
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form