Internal (reference) links

Internal links are links to other notes within Trilium.

You can open an internal link by clicking it. You can also see a read-only preview of an internal link's contents by hovering over it.

Since v0.107.0, clicking an internal link while editing a text note shows its popup instead, as clicking an external link does:

  • Open note opens the linked note, or Open attachment for a link to an attachment. A link into the same note reads Jump to heading, Jump to block or Jump to anchor instead, and scrolls to it without leaving the note.
  • Download, for a link to an attachment, downloads the attachment.
  • Edit link changes the link, as described below.
  • The More actions menu, with Open note first, which does what the first button does, then Open note in a new tab, Open note in a new split, Open note in a new window and Quick edit, then Edit link and Unlink, which turns the link into plain text. A link that shows the title of the note ends with Convert link to an included note, described in Include Note. A link to an attachment lists the actions on the attachment between Edit link and Unlink, except Delete attachment..., which follows Unlink, and ends with converting the attachment into a note. A link to blocks of the same note leaves out the ways to open the note elsewhere.

In a note being edited, right-clicking a link also opens this menu.

To follow the link without the popup, Ctrl+click or double-click it, which does what the first button of the popup does. On a touch device, touch and hold the link, then choose the first entry of its menu, such as Open note or Jump to heading. To open the note in a new tab, click it with the middle mouse button. The preview does not show while the popup is open.

A link in an included note that is not Editable opens on a click, as in a read-only note.

Internal links can be created at the current position in a text note by:

  1. Pressing Ctrl + L or the  button underneath the  menu in the Formatting toolbar, or by choosing Link to a note (internal link) in the Slash Commands. On desktop, the Add link dialog opens in a popup next to the cursor.
  2. Searching for the title of the desired note to link. It's also possible to create new notes from this dialog by typing a non-existing note title and selecting either Create note, which places it in the Note Inbox (today's day note, or the top level, when no inbox is set), or Create child note, which places it under the note being edited.

There are two link types, depending on the Link title field of the dialog:

  1. When the link title is not set, the link will display the title of the note. If the title of the note gets changed, the link will be renamed automatically to the new name.
    1. This is sometimes also called "reference link".
    2. The icon of the linked note will also be displayed.
    3. If the linked note is deleted, the link keeps the last title it showed, in red and with a icon instead of the note icon. Clicking it while editing opens the Fix link dialog, which searches for that title; picking a note, or creating a new one, replaces the link with one to that note.
  2. When a link title is typed, the link shows that text instead.
    1. This will create a traditional hyperlink, where the text of the link can be different from the note title.

Since v0.107.0, to change a link, click it and press the Edit link button in its popup. For a link with a title of its own, placing the cursor inside it and pressing Ctrl + L or the button works too. The Edit link dialog opens on the linked note, with its anchor and, for a link with a title of its own, the link's text; Save link changes the whole link. Emptying the Link title there turns the link into one that displays the title of the note, and typing one gives it a title of its own. For a link to an attachment, the dialog shows only the Link title, and emptying it makes the link display the title of the attachment.

In-place linking

You can also insert internal links “inline” by using the @ symbol:

  1. Type @ in a text note, which will open the note search menu.
  2. Search for the desired note's title by typing a few characters. Use Up and Down to select the correct note, and press Enter or Tab to create the link. It's also possible to create new notes with this method by typing a non-existing note title and selecting Create note, as described above, or Create child note. Create child note creates the note under the note being edited without asking for its type, inserts the link and opens the new note in Quick edit, which offers the note types to turn it into while it is still empty.

To create an empty child note and link to it before naming it, use New child note, described in Insert buttons.

You can also insert internal links by copying a note from the note tree.

  1. In the Note Tree, select a note and press Ctrl + C.
  2. In a text note, paste the link by pressing Ctrl + V.