Note Peek

approvedunreviewed

by pesstudios

Show just a peek of another note: its first or last few lines, or one section, with a link to the rest. Works inside callouts and admonitions.

↓ 23 downloadsUpdated 8d agoMIT

Note Peek

Show just a peek of another note — its first (or last) few lines, or one section — with a link to the rest.

A normal embed (![[note]]) always shows the whole note. Note Peek shows only as much as you want, so a long list or log fits nicely into a dashboard, a callout or an admonition.

Usage

```note-peek
file: [[Shopping list]]
lines: 4
```

Renders the first 4 lines of Shopping list and, below them, a link like … 12 more lines · ↗. Clicking more lines unfolds the whole note right there (and show less folds it back); ↗ or Ctrl/Cmd+click opens the note.

It works anywhere a code block works — including inside callouts and Admonition blocks:

````ad-summary
title: Desk
```note-peek
file: Desk
lines: 4
```
````

The peek updates automatically when the note changes.

Options

OptionDefaultMeaning
file—The note: [[Note]], [[Note|alias]], Note, folder/Note.md. [[Note#Heading]] peeks into that section.
lines5How many lines to show, or all.
fromstartend shows the last lines instead (handy for logs and journals).
section—Show only the content under this heading (section: Ideas), or the block with this id (section: abc123 for ^abc123).
moreexpandWhat the “… N more lines” link does: expand unfolds the rest in place, open opens the note, false hides the link.
codefalseInclude code blocks (dataviewjs, …). Each block counts as one line.
embedsfalseInclude lines that only embed other notes (e.g. a navigation bar). Image embeds are always shown.

What counts as a line: every non-empty line of the note. Frontmatter, blank lines and %% comments %% are never counted; blank lines between the shown lines are kept, so paragraphs stay paragraphs.

Compatibility

Works on desktop and mobile. No settings, no data stored.

Installation

Manually: download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/note-peek/ and enable the plugin.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.