Commit graph

21 commits

Author SHA1 Message Date
yaye.work
305cc8698b Release 0.2.1 2026-07-20 19:06:03 +10:00
yaye.work
3f0585e9dd Click below a trailing inline card to continue the parent note
When an inline card sits on the note's last line, the space beneath it
belonged to no line at all — clicks there did nothing, leaving no way to
keep writing in the parent. Clicking that dead zone now appends a fresh
line after the link line and places the cursor there. Gated to exactly
that case (imprecise hit, below end-of-doc, open inline on the last
line), so click-below-content behavior in ordinary notes is untouched.
2026-07-20 19:04:10 +10:00
yaye.work
b580204839 One body view: the live-preview editor serves focused and idle states
The idle reading view (MarkdownRenderer) rendered with different
spacing than the live-preview editor shown on first expand, so cards
visibly changed rhythm after blur or when another inline opened.
Instead of chasing reading-view CSS, drop the rendered view entirely:
the native embedded editor stays mounted when focus leaves (without
stealing focus on idle mounts), so the card always renders exactly
like the note does in its own pane. Blur still saves and still
reclaims untouched empty notes.
2026-07-20 18:23:01 +10:00
yaye.work
0880ca0455 Drop the card title; tighten rendered-view line spacing
The title repeated what the link above the card already says — removed.
The rendered (idle) view gave every paragraph full note-page margins,
which read as huge gaps inside a compact card; paragraph, list, and
heading margins are tightened to editor-like rhythm, with first/last
element margins stripped.
2026-07-20 18:06:30 +10:00
yaye.work
7731cb43fa Release 0.2.0 2026-07-16 18:37:04 +10:00
yaye.work
0d8dbbe45d Quiet routine notices; always show the create-inline icon
Drop the notices for reclaimed empty notes and for collapse-all finding
nothing — both fire in normal flows and got noisy. Real errors (create
failed, drop failed) still notify.

The file-plus icon on links without a note is no longer hover-only: it
shows dimmed at all times and brightens on hover, so the affordance is
always discoverable and line layouts don't depend on hover state.
2026-07-16 17:46:50 +10:00
yaye.work
7d80582fda Card polish: round toggle button, visible title, default collapsed
- The expand/collapse chevron is now a small round button (accent icon
  on a circular background) instead of a bare glyph.
- Inline bodies always show the note's title at the top; clicking it
  opens the note in a tab (Cmd/Ctrl+click for a new tab). Scroll for
  long notes moves to the content area so the title stays visible.
- Card style gets rounder corners (10px), a hairline border, and a
  subtler two-layer shadow; it's now the default nesting style.
- Killed the leftover vertical line: the embed factory can stamp
  markdown-embed classes on the container itself, which the previous
  selectors missed.
- Inline notes now default to collapsed everywhere — nothing auto-opens
  when a page loads.
2026-07-16 16:50:49 +10:00
yaye.work
557c02d535 Collapse all inline notes: Shift+Tab and command palette entry
Shift+Tab closes every open inline note in the focused editor and only
consumes the keystroke when at least one is open, so list outdenting
keeps working otherwise. Also exposed as 'Collapse all inline notes' in
the command palette (hotkey-assignable). Reclaims still-empty notes the
plugin created, same as single-collapse.
2026-07-16 13:13:18 +10:00
yaye.work
98092e1f31 Scroll long notes in a fixed-height body; fix doubled accent line
Long notes (over 200 chars) now open fully inside a 320px max-height
scrollable body instead of a truncated click-to-expand preview, so the
whole note is reachable without extra interaction. The open/close cycle
is back to a simple toggle.

Obsidian's embedded editors carry their own embed accent bar, which
stacked with the body's vertical accent line — the embed's is removed.
2026-07-16 13:12:02 +10:00
yaye.work
6480012bf7 Edit inline notes with Obsidian's own embedded editor
Editing mode now mounts a real Obsidian markdown editor through
app.embedRegistry (the mechanism Canvas uses for its note cards) instead
of a bare CodeMirror instance: live preview formatting (bold, italics,
checkboxes, tables), native editor commands and hotkeys, Obsidian's own
link suggester (rendered at document level, so no more clipping), and
native drag & drop.

The previous bare-CodeMirror editor remains as an automatic fallback if
the embed API is unavailable or fails. Cycle/depth guards now walk the
DOM (inline-note-flow ancestry) since CM state can't carry ancestry
across native embedded editors. Focus moving into suggestion popups,
menus, or modals no longer counts as leaving the body.
2026-07-16 12:59:31 +10:00
yaye.work
5be19b43ab Reclaim empty notes the plugin created
An accidental click (or Tab) on an unresolved link creates a real note;
if that note is still empty when its inline body closes — collapsed via
toggle, or focus leaves the body without anything typed — the plugin now
moves it to trash and collapses the link back to its 'create' state. The
same applies when all body text is deleted before closing.

Scope is strict: only notes created by this plugin in the current session
are ever reclaimed, deletion goes through the user's trash preference
(never permanent), and a notice reports each removal. The collapse-path
reclaim waits 600ms so the closing editor's save always lands first.
2026-07-16 12:52:54 +10:00
yaye.work
e920b4e8c0 Link suggestions and drag-and-drop inside inline notes
Typing [[ in an inline editor now pops a file suggester (all vault files,
fuzzy-filtered as you type; Enter accepts and closes the brackets), so
links can be browsed without leaving the body.

Files can be dropped into inline notes: drags from Obsidian's file
explorer insert a link (embed form for non-markdown files) at the drop
point in edit mode, or append to the note in rendered mode; OS file drops
are imported as vault attachments first, honoring the attachment folder
setting.
2026-07-16 12:50:13 +10:00
yaye.work
1c9e492a3c Never inline non-markdown files; render idle inline notes as markdown
Links resolving to PDFs, images, or any non-md file are no longer treated
as inline notes — no toggle button, no inline body, and no more reading
binary data as text. Unresolved links whose name carries a non-md file
extension are excluded from the create button too.

Idle inline note bodies now render through MarkdownRenderer (real reading
view: headings, formatting, working image/PDF/note embeds). Clicking the
rendered body switches to the source editor; when focus leaves the body it
saves and renders again. Internal links in the rendered view navigate like
native links, Cmd/Ctrl+click for a new tab.
2026-07-16 12:40:48 +10:00
yaye.work
b641bfef9e Render embeds in inline notes; preview long notes at 200 chars
![[embeds]] inside nested editors (PDFs, images, note embeds) now render
through Obsidian's MarkdownRenderer instead of being decorated as raw
wikilink text; raw text returns while the cursor touches the embed.
Embeds are excluded from link toggle buttons.

Notes longer than 200 characters open as a truncated read-only preview;
Tab (or clicking the preview) expands to the full editor. The cycle is
now closed -> preview -> full -> closed for long notes, closed <-> editor
for short ones.
2026-07-16 12:26:21 +10:00
Yaye
c193060fe5
Update README.md 2026-07-15 18:23:54 +10:00
Yaye
54ebfe11ff
Update README.md 2026-07-15 17:22:16 +10:00
Yaye
ff4f92e72c
Update README.md 2026-07-15 17:09:41 +10:00
Yaye
9ef18910c7
Update README.md 2026-07-15 17:03:53 +10:00
yaye.work
8d616564d8 Release 0.1.1 2026-07-15 16:48:29 +10:00
yaye.work
ec8e1db31c Fix CSS lint warnings: use text-decoration shorthand, drop !important
Obsidian 1.4.5 only partially supports the text-decoration-line/-color
longhands — switch to the shorthand. Replace the !important on the nested
editor's selection background with a higher-specificity selector that
out-ranks CodeMirror's built-in focused-selection rule. No visual change.
2026-07-15 16:44:53 +10:00
yaye.work
8166d9d4dd Inline Note v0.1.0
Expand any [[wikilink]] into an editable note body inline, without leaving
the page. Inline notes are real Markdown files, so backlinks and graph view
work normally. Keyboard-first (Tab after ]] to cycle), recursive nesting,
and three nesting styles.
2026-07-15 16:12:56 +10:00