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.
This commit is contained in:
yaye.work 2026-07-16 17:46:50 +10:00
parent 7d80582fda
commit 0d8dbbe45d
2 changed files with 2 additions and 7 deletions

View file

@ -968,9 +968,7 @@ class InlineNotePlugin extends Plugin {
name: "Collapse all inline notes",
editorCallback: (editor, ctx) => {
const sourcePath = (ctx && ctx.file && ctx.file.path) || "";
if (editor.cm && !this.collapseAllInline(editor.cm, sourcePath)) {
new Notice("No open inline notes.");
}
if (editor.cm) this.collapseAllInline(editor.cm, sourcePath);
},
});
}
@ -1141,7 +1139,6 @@ class InlineNotePlugin extends Plugin {
} else {
await this.app.vault.trash(file, true);
}
new Notice("Inline Note: removed empty note “" + linkText + "”.");
return true;
}
}

View file

@ -10,7 +10,7 @@
padding: 1px;
border-radius: 50%;
cursor: pointer;
opacity: 0;
opacity: 0.55;
color: var(--text-faint);
transition: opacity 120ms ease, color 120ms ease, background-color 120ms ease;
}
@ -18,8 +18,6 @@
width: 13px;
height: 13px;
}
/* note doesn't exist yet: reveal on line hover */
.cm-line:hover .inline-note-btn,
.inline-note-btn:hover {
opacity: 1;
}