Skip to content

Improve export, reload, and toolbar workflows - #195

Merged
alecdotdev merged 1 commit into
sftwrdotdev:masterfrom
daniel-grabowski:pr/export-reload-toolbar
Jul 1, 2026
Merged

Improve export, reload, and toolbar workflows#195
alecdotdev merged 1 commit into
sftwrdotdev:masterfrom
daniel-grabowski:pr/export-reload-toolbar

Conversation

@daniel-grabowski

Copy link
Copy Markdown
Contributor

Summary

  • embed local images as data URLs during HTML export, rewrite local Markdown links to .html, and include frontmatter as a static properties block
  • ask whether to open the saved HTML export in the system default app
  • add Reload from Disk through the titlebar, native menu, and F5, with dirty-state protection
  • add an editor formatting toolbar and settings for both the editor toolbar and the application titlebar toolbar
  • remove Open File Location from the titlebar overflow menu, where it duplicates the tab context menu action

Issues

fixes #154
fixes #163
fixes #185

Notes

The PDF path still delegates to the system print dialog. That API does not expose the saved PDF path, so the open-after-export prompt is implemented for HTML export only in this PR. The existing PDF implementation remains unchanged.

The bring-to-front behavior for opening Markdown files in an existing instance is handled separately in #193.

Testing

  • npm run test:frontmatter
  • npm run test:workflows
  • npm run check (0 errors, 0 warnings)
  • npm run build
  • cargo xwin check --target x86_64-pc-windows-msvc
  • cargo xwin test --target x86_64-pc-windows-msvc --no-run
  • git diff --check

Attempted cargo test on the WSL/Linux host, but the environment is missing GTK/GIO pkg-config packages (gio-2.0.pc, gdk-3.0.pc). The Windows target checks above compile cleanly.

HTML export now renders from the Markdown source, rewrites local Markdown links, embeds local images as data URLs, and includes frontmatter metadata as a static properties block.

Add a reload-from-disk action through the titlebar, native menu, and F5 with dirty-state protection. The editor formatting toolbar and the application titlebar toolbar can now be configured from settings, including visibility and order.

The export path asks whether to open the saved HTML file in the system default app. PDF export still delegates to the system print dialog because that path does not expose the saved file path.

fixes sftwrdotdev#154

fixes sftwrdotdev#163

fixes sftwrdotdev#185
@alecdotdev
alecdotdev merged commit cead95d into sftwrdotdev:master Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reload from disk Export to HTML - missing pictures Toolbar for easy writting

2 participants