I study the Bible with a notes tab I built myself. This week I added two things to it: a way to restore a note I deleted by mistake, and a checkbox that puts a whole chapter into a note, one verse at a time, so I can write a comment under each verse. Both took one afternoon with Claude Code. The restore feature also gave my app one small advantage over Google Keep, which I used for years. I will explain that at the end.

The Need: A Study Note Is Hard to Rebuild

Two problems came up while I was preparing for a Bible study.

1. One wrong tap deletes a note. A study note is not a shopping list. It holds verses I picked, my own comments, and sometimes an hour of thinking. In the note list, the delete button sits right next to the note. One tap in the wrong place and it is gone.

2. Studying a chapter verse by verse was slow. I wanted to read a chapter and write a short comment under every verse. To do that I had to open the chapter, tick each verse, and insert them. For a chapter with 30 verses, that is a lot of ticking.

The Proof: What It Does Now

Insert a whole chapter. In the search box I type only a chapter, for example John 1 (in Korean I type 요 1장; Psalms use 편). The app already recognized this as a “go to this passage” shortcut. Now a checkbox appears under the heading: Insert all verses into memo. When I tick it:

  • every verse of the chapter goes into the note
  • each verse is its own card, such as John 1:1, John 1:2, and so on
  • between two cards there is an empty text line, so I can type my comment right under the verse

The checkbox works only when the current note is empty. If the note already has content, the app shows a message and inserts nothing. I asked for this rule on purpose. A chapter with 30 or 50 cards dropped into the middle of an existing note would be a mess to clean up.

Restore a deleted note. When I delete a note, it moves to a small trash inside the app instead of disappearing. At the top of the note list there is now a Restore button with a count. It opens the list of deleted notes, newest first, with the title, the first line, and the time I deleted it. I tap Restore on one, and it comes back.

If the trash reaches 100 notes, the app asks whether to empty it. If I say no, it keeps everything and asks again the next time I delete something. It never empties itself.

The Story: Why Small Safety Nets Matter to Me

My notes are the part of this app that I would hate to lose. In October I moved my old Google Keep notes into the app as a read-only view, and I now write new notes directly in the Bible app, next to the verses. The more I write there, the more one wrong tap can cost.

I did not plan to build a trash. I thought about it when I looked at the delete button and realized it had no safety net. The server already keeps a copy of every deleted note in a backup folder, but that is for me to dig out with a file manager. It is not something I can use from my phone in ten seconds.

Now to the Keep comparison. I want to be careful here, because Keep is a good app. Keep also has a trash. As far as I can tell, notes in the Keep trash are removed automatically after 7 days. That is reasonable for a general notes app. For my use it is the weak point: the day I notice a missing note might be the day after the clock ran out.

My version works the other way around. A deleted note stays in the trash with no time limit. The only thing that removes notes from the trash is me, and the app asks before it does that. It is a small difference. But for someone who keeps study notes for months, it is the difference that matters: I decide when a deleted note is really gone, not a timer.

There is a trade-off, and I should say it clearly. Keep’s trash follows you to every device. Mine is saved only on the device where I deleted the note. A note I delete on my phone will not appear in the restore list on my PC. I accepted this because the thing I wanted to protect against is a wrong tap, and a wrong tap is noticed right away, on the same device.

The How: What I Built, Step by Step

Cost: $0. No new service, no new API. It is a change to one HTML file that already runs on my NAS, built with Claude Code.

Insert a chapter, one card per verse

The app has a small server route that turns text like John 1 into a book and chapter number. When it returns a chapter without a verse, the page adds the checkbox. Ticking it does this:

  1. Fetch the chapter from the existing endpoint, /api/bible/<book>/<chapter>. It returns the verses as numbered text.
  2. Sort the verse numbers as numbers, not as text, so that verse 10 comes after verse 9.
  3. Make one verse block per verse, with the reference John 1:5 and the single verse inside.
  4. Insert the blocks into the note. The existing insert function already puts an empty text block between two verse cards, which is where my comments go.

Before step 4, the code checks that the note is empty: no text, no verse cards, no attached files. The title is ignored, because a new note often already has a date as its title.

My notes can also be written in a separate app window (a “split mode” I use on a tablet). That window cannot see the other window’s note, so the chapter is sent with an emptyOnly flag, and the notes window checks the rule when it receives it.

💬 Prompt that worked “When the search is recognized as a Bible shortcut and there is a chapter but no verse, I need a way to insert every verse of that chapter into the memo. Add a checkbox next to the shortcut label: if checked, all verses of the chapter are inserted.”

Follow-up: “Insert them one verse at a time. I want to add a comment under each verse.”

Follow-up: “Whether or not the note has a title, insert only if the note content is empty, at the very first line. If it has content, show a message that it cannot be inserted.”

The follow-ups were as important as the first prompt. The first version would have put the verses into one card. The second prompt changed the design, and the third set the safety rule.

A trash for deleted notes

Notes are stored in the browser’s IndexedDB, one record per note. I added one more record in the same database, called trash, which holds the list of deleted notes.

  • On delete, the note (title, content, verse cards, attachment info) is copied to the trash with the time. Empty notes are not kept, because there is nothing to restore.
  • The list is capped by a question, not by deleting: at 100 or more, a confirm box asks whether to empty it.
  • On restore, the note goes back into the list with a fresh time, so it appears at the top. If the account syncs to my NAS, it is sent there again as a new note.

Attached files do not need special handling. When I delete a note, the files stay on the server, and the restored note points to them again.

🗂 Claude.md Rule Notes trash is stored on the device only (IndexedDB meta.trash), not synced to the NAS. Clearing the browser’s site data also clears the trash. The server keeps its own separate backup of every deleted note.

What I Want to Improve Next

  • Trash on every device. A deleted note should be restorable from my PC even if I deleted it on my phone. This needs the trash to live on the NAS, with its own clean-up rule.
  • A chapter into a note that already has content. Right now the rule is “empty notes only.” I may add an option to put the chapter at the end of the note after I get used to the current behavior.
  • Long chapters. Psalm 119 has 176 verses, so it makes 176 cards. I want to see how the note feels with that many cards and whether I need a “collapse” option.