diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 16:07:14 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 16:07:14 +0200 |
| commit | 0321ea57f5c561215a8dea111ed7f3ea7b05594e (patch) | |
| tree | 75ce332f8985907fcd0118aa2c3f4aafb8587ad7 /cmd | |
| parent | f48b79d8860e4c4616821ceeeea091ab4b838197 (diff) | |
| download | lectio-0321ea57f5c561215a8dea111ed7f3ea7b05594e.tar.gz lectio-0321ea57f5c561215a8dea111ed7f3ea7b05594e.zip | |
tui reader: bookmarks (m=mark w/ note, b=list/jump/delete, per-verse via top-visible verse) + remember last place; v0.18.0
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/lectio-ui/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/lectio-ui/main.go b/cmd/lectio-ui/main.go index d8e2f27..dd91117 100644 --- a/cmd/lectio-ui/main.go +++ b/cmd/lectio-ui/main.go @@ -11,6 +11,7 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/lukaszkasprzak/lectio/internal/bible" + "github.com/lukaszkasprzak/lectio/internal/bookmarks" "github.com/lukaszkasprzak/lectio/internal/config" "github.com/lukaszkasprzak/lectio/internal/tui" ) @@ -120,7 +121,7 @@ func run(args []string, stdout, stderr io.Writer) int { var mdl tea.Model = tui.New(cfg, date, bibleVer) if reader { tbl, _ := bible.LoadBookTable(config.UserBooksTOML()) - mdl = tui.NewReader(cfg, tbl) + mdl = tui.NewReader(cfg, tbl, bookmarks.Open()) } if _, err := tea.NewProgram(mdl, tea.WithAltScreen()).Run(); err != nil { fmt.Fprintln(stderr, err) |
