I came here to check up on whether there was a fix for linking multiple verses, but I literally just finished working on a Shortcut to do this! Remove headings in Obsidian Bible
Please note:
- I’ve only tested this on MacOS Montery. No idea if it’ll run correctly on iOS.
- From my testing it works for the majority of cases, but won’t catch a heading which occurs mid-sentence
- There’s a false-positive that occurs with a double quote following a single quote (see example below). There’s likely to be a quick fix by looking at the regex, but I’ve spent far too long on this already!
"‘Behold, I send my messenger before your face, who will prepare your way before you.’
Back up your Scripture folder before trying this!!!
- When you first run it, you’ll need to set the top action to your Scripture folder. The Shortcut will process your directory book by book.
- The first prompt you see will show all the positive matches in a given book (each separated weirdly by a double space). Press Enter to proceed. If you cancel now, the entire Shortcut will stop.
- The second prompt will ask if you want to process all the chapters at once, skip the book, or be prompted for each chapter individually. Check each line carefully to make sure that they are all headings that you want removed.
- There’s a lot of headings over hundreds of chapters over 66 books, so the process takes a good chunk of time to work through, but it’s definitely faster than doing it manually!
Note: as mentioned above, there are some rare cases of false-positives, which is why you may need to go chapter-by-chapter. I’ve erred on the side of caution with the search to reduce the number, but some are inevitable.
Did I mention you should back up your Scripture directory before trying this?!
You can use the following regex search in Obsidian to quickly check that it’s worked on your vault:
/\S(\.|\?|\!|\"|\')[A-Z]/ -/[A-Z]\'[A-Z]/
There are some edge case ones that slip through because they occur in the middle of a sentence. You’ll have to get those manually by searching through Obsidian. I can’t find my regex search string for those, but I’ll figure it out tomorrow and post back here when I do.