From 8df899b6edf6f8746a5261fcc6a0055068da26f6 Mon Sep 17 00:00:00 2001 From: Scott Tomaszewski Date: Tue, 2 Jun 2026 22:56:06 -0400 Subject: [PATCH] Reword insert notice to 'Passage inserted into note ' --- docs/gotchas.md | 5 +++-- src/components/VerseActions.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/gotchas.md b/docs/gotchas.md index c57382b..f23ce88 100644 --- a/docs/gotchas.md +++ b/docs/gotchas.md @@ -77,5 +77,6 @@ non-obvious things: → `lastEditableLeaf`, filtered by `isBibleContentFile`) and `resolveInsertTarget()` returns it. There's no public "leaves in MRU order" API — this `active-leaf-change` tracking is the stand-in. Insert does **not** steal focus; it drops the text in and shows - an `Inserted … into ` notice. The right-click "Insert here" path is unaffected — it - always uses the clicked editor. + a `Passage … inserted into note …` notice (important when the target pane is in the + background). The right-click "Insert here" path is unaffected — it always uses the clicked + editor. diff --git a/src/components/VerseActions.ts b/src/components/VerseActions.ts index df1f238..c446d58 100644 --- a/src/components/VerseActions.ts +++ b/src/components/VerseActions.ts @@ -69,7 +69,7 @@ export async function runVerseAction( return; } view.editor.replaceSelection(payload); - new Notice(`Inserted ${selection.label()} into ${view.file?.basename ?? "note"}`); + new Notice(`Passage ${selection.label()} inserted into note ${view.file?.basename ?? "note"}`); return; }