Local Bible Ref

by Caleb Campbell
5
4
3
2
1
Score: 51/100

Description

The Local Bible Ref plugin enables seamless offline Bible referencing by pulling passages from locally stored markdown files within your vault. Users can fetch verses, chapters, or ranges using a simple -- prefix syntax, like --John 1:1, and enhance the output with format options such as +quote, +paragraph, or +callout. It supports multiple Bible versions through a folder-based structure, letting you switch between translations like ESV or WEB. Each Bible must follow a defined markdown format where each chapter is stored as an individual file and verses are marked using <sup> tags. While the setup may take some initial effort, the result is a fast, flexible, and entirely offline Bible referencing experience.

Reviews

No reviews yet.

Stats

10
stars
817
downloads
3
forks
205
days
37
days
37
days
11
total PRs
0
open PRs
0
closed PRs
11
merged PRs
12
total issues
1
open issues
11
closed issues
10
commits

RequirementsExperimental

  • Locally stored Bible in markdown format

Latest Version

a month ago

Changelog

What's Changed

  • Updated passage reference regexp to allow for numbers in Bible version code
  • Added support for the Czech language in settings/UI.

Full Changelog: https://github.com/camelChief/local-bible-ref/compare/1.3.0...1.3.1

README file from

Github

Local Bible Ref

Quickly and easily reference Bible passages stored locally in your vault.

localBibleRef1

Basics

Inspiration

This plugin takes heavy inspiration from the Bible Reference and Bible Linker plugins - please check them out! I've been using the Bible Reference plugin for a while (which has been great) and I love the simplicity of referencing passages using the -- prefix. I also loved the idea of storing a Bible locally because then I can reference Bible passages even when I'm offline, as well as use my vault Bible for reading. Unfortunately, the markdown format of the Bible Linker local Bible is not great for reading, and I prefer the simplicity of using the -- prefix to fetch Bible passages. There's also some referencing limitations in the Bible Reference plugin and occasionally some odd additions to passages returned from the Boll's Life API. So, this is an amalgamation of those two plugins.

Getting Started

To start with, you will need to format a Bible for your own vault.

If you would like to use your vault Bible for reading, I would encourage you to format it in the original Local Bible Ref format. Some instructions on this can be found below. I've also already formatted the Public Domain World English Bible so you can download that and just get started. If you don't want to go to all that hassle, you can use your existing Bible Linker Bible with this plugin! In order to do that, simply select "Bible Linker" as your Bible format in the Local Bible Ref settings.

Once you've done that, open up the Local Bible Ref settings and fill in at least the Bibles path field. Then, to use the plugin, simply open a new note and use the -- reference prefix to grab a passage of scripture. There are also additional options (similar to terminal command options) you can provide to the reference to indicate which version to use and what markdown format to display the passage in. More information can be found below.

Usage

References

In order to fetch a Bible passage, simply type in a Bible reference prefixed with --: --John 1:1. Local Bible Ref currently supports Bible references in the form:

  • Single verse: --gen1:1
  • Multi verse: --gen1:1-3
  • Single chapter: --gen1
  • Multi chapter: --gen1-3
  • Multi chapter & verse: --gen1:3-3:9

The referencing syntax also allows for a lot of flexibility:

  • Short and full name references: --gen1 + --genesis1
  • Lowercase, uppercase and mixed-case references: --gEnEsis1
  • Spacing (not more than a single space): -- Genesis 1:1 - 2:2

Options

Local Bible Ref also allows you to provide a few options to a reference to specify which version you would like to use as well as what markdown format to use. Add an option to a reference by adding a + followed by the option (in any order): --gen1:1-5+esv

You can also pass multiple options by simply chaining them: -- John 1:1 +quote +esv

Syntax: --<reference>[+<option>]...

Option Usage Example
manuscript, m Specifies that the passage should be displayed in "manuscript" format (without chapter numbers, verse numbers or other formatting like newlines). localBibleRef3
paragraph, p Specifies that the passage should be displayed in a standard paragraph. localBibleRef4
quote, q Specifies that the passage should be displayed in quote format. localBibleRef5
callout, c Specifies that the passage should be displayed in callout format. localBibleRef6
any other text, niv Any other text besides the options listed above will be treated as a version code. localBibleRef7

Bible Markdown Format

The Bible markdown format required for this plugin is slightly more complex than the format used for the Bible Linker plugin. I chose this particular format because it makes the Bible much nicer to read if you simply wanted to use your vault Bible for reading (as I do). It looks something like this:

localBibleRef2

Most of the formatting shown here is unnecessary. You really only need to ensure your Bible adheres to the following:

  • Verses are denoted by the verse number wrapped in the sup tag: <sup>1</sup>
  • Each chapter is a markdown file of it's own
  • Chapters are named with the convention <book name> <chapter>.md: Genesis 1.md
  • Chapters are grouped into folders with the full name of the book: Genesis
  • Books are grouped into a folder with the version code of the Bible: CSB
  • All versions are under the same folder

Doing things this way allows you to store and reference multiple different versions of the Bible:

Beyond that, everything else (section headings, footnotes, links) is optional. Be careful not to add odd characters or extra text in the verses, or they will show up when you reference them. Currently, referencing will ignore YAML frontmatter, headings, chapter numbers (any bolded digits), footnotes and anything after a horizontal rule.

If all of this seems a bit confusing, please check out the aforementioned markdown formatted WEB to help you understand the formatting requirements.

Limitations

  • Referencing does not yet support multiple passages: Genesis 1:1; John 1:1

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.