Metadata-Version: 2.4
Name: bible-tui
Version: 0.9.2
Summary: A dependency-free terminal Bible reader with Vim-style navigation and pluggable versions
Author: Cody Sechelski
License-Expression: MIT
Project-URL: Homepage, https://github.com/codysechelski/bible-tui
Project-URL: Documentation, https://github.com/codysechelski/bible-tui/blob/main/docs/features/index.md
Project-URL: Issues, https://github.com/codysechelski/bible-tui/issues
Project-URL: Changelog, https://github.com/codysechelski/bible-tui/blob/main/CHANGELOG.md
Keywords: bible,scripture,terminal,tui,curses,vim,kjv,reader
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console :: Curses
Classifier: Intended Audience :: End Users/Desktop
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Religion
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

<h1 align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/docs/logo/bible-tui-logo-dark.png">
    <img alt="bible-tui" src="https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/docs/logo/bible-tui-logo-light.png" width="400">
  </picture>
</h1>

<p align="center">
  <a href="https://github.com/codysechelski/bible-tui/releases"><img alt="Release" src="https://img.shields.io/github/v/release/codysechelski/bible-tui?sort=semver"></a>
  <a href="https://github.com/codysechelski/bible-tui/actions/workflows/release.yml"><img alt="CI" src="https://github.com/codysechelski/bible-tui/actions/workflows/release.yml/badge.svg"></a>
  <a href="https://pypi.org/project/bible-tui/"><img alt="PyPI" src="https://img.shields.io/pypi/v/bible-tui"></a>
  <a href="https://github.com/codysechelski/bible-tui/blob/v0.9.2/pyproject.toml"><img alt="Python 3.9+" src="https://img.shields.io/badge/python-3.9%2B-blue"></a>
  <a href="https://github.com/codysechelski/bible-tui/blob/v0.9.2/pyproject.toml"><img alt="Dependencies: none" src="https://img.shields.io/badge/dependencies-none-brightgreen"></a>
</p>

A fast, dependency-free terminal Bible reader with Vim-style keys.

![A tour of bible-tui: moving around, going to a verse, fuzzy-finding, marking, highlighting, and comparing two versions](https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/.tapes/overview/gifs/overview_small.gif)

- **[Read and navigate](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/navigation.md)** with arrows or Vim keys,
  [jump to `John 3:16`](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/go-to-reference.md) with autocomplete, and use a Vim-style
  [`:` command line](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/command-line.md).
- **[Search](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/search.md)** within a chapter, or
  [fuzzy-find across the whole Bible](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/fuzzy-find.md) with a live preview.
- **[Compare two versions](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/split-view.md)** side by side, with verses lined up.
- **[Mark](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/marks.md) and [highlight](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/highlights.md)** verses in six colors. They're
  saved and show in every version.
- **[Bring any version you have the rights to](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/versions.md)**, in any language: each one is a SQLite file. The
  public-domain KJV and ASV are included (see [what about the NIV or ESV?](https://github.com/codysechelski/bible-tui#what-about-the-niv-or-esv)).

| | |
| --- | --- |
| [![Highlight color picker](https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/.tapes/highlight/screenshots/showing-highlight-options-thumbnail.png)](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/highlights.md) | [![Fuzzy-finding verses across the whole Bible](https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/.tapes/fuzzy-finding/screenshots/showing-fuzzy-find-multi-word-thumbnail.png)](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/fuzzy-find.md) |
| [Highlight verses](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/highlights.md) in six colors | [Fuzzy-find](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/fuzzy-find.md) across the whole Bible |
| [![The Go To Reference box](https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/.tapes/go-to-reference/screenshots/showing-go-to-reference-modal-thumbnail.png)](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/go-to-reference.md) | [![Two versions side by side](https://raw.githubusercontent.com/codysechelski/bible-tui/v0.9.2/.tapes/splits/screenshots/showing-vertical-split-thumbnail.png)](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/split-view.md) |
| [Go to a reference](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/go-to-reference.md) with autocomplete | [Compare two versions](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/split-view.md) side by side |

**[See all features →](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/features/index.md)** Each one has a short animation.

## Install

bible-tui runs on macOS and Linux. Install it with [Homebrew](https://brew.sh), which brings its own Python:

```sh
brew install codysechelski/tap/bible-tui
```

Or with [pipx](https://pipx.pypa.io), using Python 3.9 or newer:

```sh
pipx install bible-tui
```

Then run `bible-tui`. You can also run it from a clone with `./bible-tui`. `pip install bible-tui` works too, but
pipx keeps it in its own environment.

bible-tui checks for new releases once a day and tells you in the footer. Run `:update` to install the new
version and restart where you were. To turn the check off, set `"check_for_updates": false` (see
[update checks](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/configuration.md#update-checks)).

## Usage

```sh
bible-tui                         # open the default version
bible-tui asv                     # open a version by abbreviation
bible-tui ~/my.sqlite             # open a database file directly
bible-tui --bibles-dir ~/Bibles   # search an extra folder (repeatable)
bible-tui --list-versions
bible-tui --paths                 # show the config, state, and Bible folders in use
```

| Action | Keys |
| --- | --- |
| Move | arrows, or `h` `j` `k` `l` |
| Next / previous chapter | `]` / `[` |
| Go to a reference | `ctrl+g`, or `:John 3:16` |
| Search the chapter / the whole Bible | `/` / `ctrl+s` |
| Switch version | `t` |
| Split to compare versions | `ctrl+w v` |
| Mark / highlight a verse | `m` / `c` |
| Copy the verse | `yy` |
| All commands and keys | `ctrl+p` or `?` |
| Quit | `q` |

Every action also works without Vim keys. The full list is in [docs/keybindings.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/keybindings.md).\n\nCurious how far the Vim inspiration goes? Read the [Vim-inspired navigation philosophy](docs/vim-inspired-navigation.md).

## Adding versions

Each version is one SQLite file. Copy a database into `~/.config/bible-tui/bibles/` and it appears in the
version picker.

## What about the NIV or ESV?

bible-tui will only ever ship Bibles that are in the public domain or under an open licence that lets them be
shared. Most modern translations, including the NIV and ESV, are under copyright, so they can't be distributed
through this repo, and pull requests that add them can't be accepted.

You can still read any version you have the rights to use:

- **Convert a published Bible.** [bible-tui-bible-converter](https://github.com/codysechelski/bible-tui-bible-converter),
  a companion tool from the same author, turns USFM, USX, OSIS, and other formats into bible-tui databases.
  [docs/adding-bibles.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/adding-bibles.md) walks through it.
- **Make your own database.** bible-tui doesn't care where a database came from. It only has to match the
  [database schema](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/bible-databases.md#schema). Most coding agents can take Bible text from whatever
  source you have it in and write a SQLite file with this schema.

## Configuration

`config.json` lives in the app home: `~/.bible-tui` if that folder exists, otherwise `~/.config/bible-tui` (or
`$BIBLE_TUI_HOME`).

```json
{
  "default_version": "KJV",
  "bibles_dirs": ["~/Bibles"],
  "book_order": "bible",
  "nerd_font": false,
  "remember_split": false,
  "remember_position": false,
  "yank_format": "{text}"
}
```

Every setting is described in [docs/configuration.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/configuration.md).

## Development

```sh
python3 -m unittest discover -s tests -t .
python3 -m py_compile bible_tui/*.py tests/*.py
```

Releases are automatic from [Conventional Commits](https://www.conventionalcommits.org/) on `main`: `fix:`
releases a patch and `feat:` a minor version. See [CONTRIBUTING.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/CONTRIBUTING.md) to get involved, and
[ROADMAP.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/ROADMAP.md) for what's planned.

## Bible texts

The bundled KJV and ASV come from [eBible.org](https://ebible.org) and are in the public domain. Sources and
notes are in [docs/bible-databases.md](https://github.com/codysechelski/bible-tui/blob/v0.9.2/docs/bible-databases.md#bundled-versions).

## Licence

bible-tui is released under the [MIT License](https://github.com/codysechelski/bible-tui/blob/v0.9.2/LICENSE). The bundled Bible texts are in the public domain.
