rv-bible-cli 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/Pager.js +7 -2
- package/package.json +1 -1
package/dist/ui/Pager.js
CHANGED
|
@@ -1392,11 +1392,16 @@ function Pager({ initialBook, initialChapter, initialNotes, initialOutline, star
|
|
|
1392
1392
|
const BOOK_OVERRIDES = { Act: 'History of the Church' };
|
|
1393
1393
|
const bookInfo = getBookInfo(book);
|
|
1394
1394
|
const categoryLabel = BOOK_OVERRIDES[book] ?? CATEGORY_LABELS[bookInfo?.category ?? ''] ?? '';
|
|
1395
|
-
|
|
1395
|
+
// In study mode the cursor verse is the meaningful "you are here" indicator;
|
|
1396
|
+
// in other modes there's no per-verse cursor, so fall back to the verse at
|
|
1397
|
+
// the top of the visible viewport.
|
|
1398
|
+
const headerVerseIdx = mode === 'study'
|
|
1399
|
+
? studyCursorIdx + 1
|
|
1400
|
+
: verseAtLine(verseMap, scrollOffset) + 1;
|
|
1396
1401
|
const title = `${bookName} ${chapter}`;
|
|
1397
1402
|
const widthOffset = 2 - zoom; // positive = wider (user pressed +), negative = narrower (user pressed -)
|
|
1398
1403
|
const zoomLabel = widthOffset !== 0 ? ` ${chalk.dim(widthOffset > 0 ? `+${widthOffset}` : `${widthOffset}`)}` : '';
|
|
1399
|
-
const position = `${
|
|
1404
|
+
const position = `${headerVerseIdx}/${verses.length}`;
|
|
1400
1405
|
const titleLeft = categoryLabel
|
|
1401
1406
|
? ` ${title} ${chalk.dim('·')} ${chalk.dim(categoryLabel)}${zoomLabel}`
|
|
1402
1407
|
: ` ${title}${zoomLabel}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rv-bible-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Fast, offline terminal Bible reader for the Recovery Version. Footnotes, cross-references, concordance search, interactive pager.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|