Commit graph

23 commits

Author SHA1 Message Date
avi
0589dd0396 chore(release): bump to 0.1.10 2026-10-04 13:11:44 -05:00
avi
3e0c7f69bf chore(release): bump to 0.1.9 2026-10-04 13:09:55 -05:00
avi
c064e3aab1 chore(release): bump to 0.1.8 2026-10-04 11:34:10 -05:00
avi
e794f241ba chore(release): bump to 0.1.7 2026-10-04 10:03:04 -05:00
avi
9a1202f0fc chore(release): bump to 0.1.6 2026-10-02 15:06:27 -05:00
avi
8745f88c2c chore(release): bump to 0.1.5 2026-10-02 14:32:42 -05:00
avi
8e371dd827 chore(release): bump to 0.1.4 2026-10-01 14:52:42 -05:00
avi
170ef52154 chore(release): bump to 0.1.3 2026-10-01 13:00:53 -05:00
avi
d249d0f00d chore(release): bump to 0.1.2 2026-09-23 08:30:47 -05:00
avi
76222fc1b2 chore(release): bump to 0.1.1 2026-09-19 18:49:39 -05:00
avi
542a545c0d feat: spellcheck menu, typewriter mode, file associations, updater hardening
English spellcheck suggestions with Add-to-dictionary in the native context menu plus a Settings toggle. Typewriter caret-centering mode. OS file associations for .md/.txt and Open File wording. Updater: release URL surfaced, single progress listener, two-byte tarball check, installer wait guard. Search/installer test suites registered; chapter-list layout polish; ignore KDE .directory files.
2026-09-19 16:38:17 -05:00
avi
ada5eee679 feat: open Markdown files and in-app updater
Markdown:
- File > Open Markdown File... and welcome-screen 'Open .md' import
  one or more .md files as new books (named after first H1 or the
  filename; originals never modified, collision-safe folder names).
- Book dirs and .md files passed on the command line or via desktop
  file associations now open directly; single-instance lock forwards
  second launches to the running window.

Updates:
- File > Check for Updates... and welcome-screen 'Update' button:
  queries the Gitea releases API, one-click installs a newer release
  into ~/.local/share/Folio via a detached swap script that waits for
  app exit, keeps the old tree until the swap succeeds, and relaunches.
  Download is gzip-verified and restricted to the trusted release host.
  No root, no reinstall.

Tests: 19 new assertions in tests/run-update-import-test.mjs (wired
into npm test); full suite green, tsc clean.
2026-09-19 00:02:58 -05:00
avi
786a65ae2a Replace markdown editor with native Tiptap editor and add Home navigation
- Migrate renderer from md-editor/md-format to a Tiptap-based native editor
  (native-doc pipeline: native-doc, markdown-to-native, native-to-markdown,
  native-assembly, migration, backup)
- Use pointer-event-based chapter reordering with grab/grabbing cursors to
  avoid the Wayland prohibited-drop cursor while preserving reordering
- Add a persistent Home button that closes the open book and returns to the
  Folio library/welcome screen
- Update app icons, package deps, theme styles, and tests
2026-08-20 11:12:17 -05:00
avi
6679294231 Add DOCX and ODT export for the Full Book view
The main process now assembles the manuscript from the chapter files and
renders it to a Word document with the docx library, using the same
markdown-it plugin set as the on-screen renderer (highlight, callouts,
wikilinks). ODT is converted from that DOCX with LibreOffice running
headless, keeping the two formats consistent; a clear error is returned
when LibreOffice is missing. The Full Book header's single Export PDF
button becomes an Export menu (PDF/DOCX/ODT) wired to the File menu.

Tests: new run-office-export-test.mjs verifies DOCX/ODT structure,
chapter order and formatting; the e2e scenario exports through the real
IPC chain and checks magic bytes, extensions and the status notices.
2026-08-18 17:06:32 -05:00
avi
06fa671f84 WIP: preserve recovered Folio packaging and icon work 2026-08-18 08:31:43 -05:00
avi
c09f4adc30 Add Markdown formatting toolbar and editor shortcuts 2026-08-17 12:28:49 -05:00
avi
1ae9744b2b Replace split textarea/preview editor with a single CodeMirror Markdown editor 2026-08-17 11:15:23 -05:00
avi
1d705ac607 Add wikilink support as a markdown-it plugin with unit tests 2026-08-17 11:15:06 -05:00
avi
5dcdec86b9 Stage 6: export book as combined Markdown or ZIP bundle (title page, book.md, chapters/, manifest) with File menu + toolbar entries and export tests 2026-08-17 09:22:41 -05:00
avi
25baae2950 Stage 5: live Markdown editor (source+preview), autosave, word count, find bar, save-state indicator 2026-08-16 14:51:06 -05:00
avi
d3ab261346 Stage 3: chapter management — create/rename/delete/duplicate, sidebar list, select, read-only preview, word count, IPC + tests + e2e self-test 2026-08-16 14:34:34 -05:00
avi
2862c433bd Stage 2: local project creation — folder dialog, folio.json, recents, menu, book open/new/reveal, welcome UI 2026-08-16 14:11:51 -05:00
avi
6fac0d013b Stage 1: app skeleton — Electron window, sidebar/editor layout, light/dark CSS, esbuild build, typecheck 2026-08-16 13:33:53 -05:00