|
| 1 | +--- |
| 2 | +title: Internal Links |
| 3 | +description: "Link notes and snippets together inside massCode Notes with wiki-style links, hover previews, and back-forward navigation." |
| 4 | +--- |
| 5 | + |
| 6 | +# Internal Links |
| 7 | + |
| 8 | +<AppVersion text=">=5.1.0" /> |
| 9 | + |
| 10 | +Internal Links let you connect notes and snippets with wiki-style links directly inside Notes. Use them to build lightweight documentation, link reference snippets from prose, and move through related material without leaving massCode. |
| 11 | + |
| 12 | +<img :src="withBase('/notes-internal-links.png')"> |
| 13 | + |
| 14 | +## Link Syntax |
| 15 | + |
| 16 | +Use double brackets around the target name: |
| 17 | + |
| 18 | +```md |
| 19 | +[[API authentication]] |
| 20 | +[[Fetch helper]] |
| 21 | +``` |
| 22 | + |
| 23 | +You can also provide custom visible text with an alias: |
| 24 | + |
| 25 | +```md |
| 26 | +[[API authentication|auth flow]] |
| 27 | +[[Fetch helper|request snippet]] |
| 28 | +``` |
| 29 | + |
| 30 | +massCode resolves internal links by item name. A target can be either a note or a snippet. |
| 31 | + |
| 32 | +## Creating Links |
| 33 | + |
| 34 | +Start typing `[[` in the Notes editor to open the internal links picker. |
| 35 | + |
| 36 | +- The picker searches both notes and snippets. |
| 37 | +- Results show the item name and its current location. |
| 38 | +- Press <kbd>Enter</kbd> to insert the active result. |
| 39 | +- Use the arrow keys to move through the list. |
| 40 | + |
| 41 | +The inserted link keeps the readable wiki-link format in your markdown. |
| 42 | + |
| 43 | +## Opening Links |
| 44 | + |
| 45 | +Hold <kbd>Cmd</kbd> on macOS or <kbd>Ctrl</kbd> on Windows or Linux, then click the link. |
| 46 | + |
| 47 | +- If the target is a note, massCode opens it in Notes. |
| 48 | +- If the target is a snippet, massCode switches to Code and opens the snippet there. |
| 49 | + |
| 50 | +Broken links stay visible, but they appear dimmed and struck through so you can spot missing targets. |
| 51 | + |
| 52 | +## Preview |
| 53 | + |
| 54 | +Hover an internal link while holding <kbd>Cmd</kbd> on macOS or <kbd>Ctrl</kbd> on Windows or Linux to open a preview popup. |
| 55 | + |
| 56 | +- Note links show a text excerpt. |
| 57 | +- Snippet links show the first snippet fragment. |
| 58 | + |
| 59 | +This helps you confirm the target before you navigate away from the current note. |
| 60 | + |
| 61 | +## Navigation History |
| 62 | + |
| 63 | +When you follow internal links, massCode keeps a small link navigation history for that session. |
| 64 | + |
| 65 | +- Use the back and forward buttons in the editor header to move through link-based navigation. |
| 66 | +- Use <kbd>Cmd+[</kbd> / <kbd>Cmd+]</kbd> on macOS or <kbd>Ctrl+[</kbd> / <kbd>Ctrl+]</kbd> on Windows or Linux. |
| 67 | +- The same actions are also available from the **History** menu. |
| 68 | + |
| 69 | +The history is specific to internal-link navigation. If you manually select another note or snippet from the list, that temporary link history is cleared. |
| 70 | + |
| 71 | +## When to Use Internal Links |
| 72 | + |
| 73 | +- Link architecture notes to implementation snippets |
| 74 | +- Connect meeting notes to reference code |
| 75 | +- Build personal knowledge-base pages that jump between notes and snippets |
| 76 | +- Keep long-form docs in Notes while linking reusable code examples from Code |
| 77 | + |
| 78 | +<script setup> |
| 79 | +import { withBase } from 'vitepress' |
| 80 | +</script> |
0 commit comments