Skip to content

feat: improve tabs, print, and sidebar polish#77

Merged
mattenarle10 merged 10 commits into
mattenarle10:mainfrom
hoiyada7-maker:main
Jun 18, 2026
Merged

feat: improve tabs, print, and sidebar polish#77
mattenarle10 merged 10 commits into
mattenarle10:mainfrom
hoiyada7-maker:main

Conversation

@hoiyada7-maker

@hoiyada7-maker hoiyada7-maker commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add pointer-based tab drag reorder
  • focus an already-open tab instead of opening duplicate tabs
  • keep favorites when closing a folder section
  • improve print/PDF naming and preview-only print output
  • remove the extra favorites guide line

Maintainer notes

  • kept version metadata at v1.5.10; this is not a release PR
  • kept the default window size at 1240x820
  • kept last-file session restore behavior

Testing

  • bun test
  • bun run build
  • cargo check --release

hoiyada7-maker and others added 10 commits June 17, 2026 22:56
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e, print-only preview

- Tab drag-to-reorder: fix dragLeave child-element issue, add dataTransfer.setData
  and effectAllowed/dropEffect for reliable HTML5 drag; buttons marked draggable=false
- No duplicate tabs: loadFile/loadPlainTextFile return early if path already open
- Favorites preserved when closing folder (removed setFavorites from handleCloseFolder)
- Print (Ctrl+P): @page named margin boxes clear browser date/title/URL headers,
  page number centered at bottom-center; @media print hides all non-preview elements
- Bumps version 1.5.16 → 1.5.17

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…int filename

- open-tabs: replace HTML5 DnD with pointer-event drag (Tauri dragDropEnabled
  intercepts native drag on WebView2, breaking HTML5 dragstart/dragover/drop)
- sidebar: hide vertical guide line in favorites section (was rendering as "|"
  next to file names due to .mdv-rootfolder .mdv-tree::before propagating)
- pdf-export: set HTML title to MD filename without extension so browser
  Save-as-PDF dialog defaults to the document name instead of "marka.md export"
- bump 1.5.17 → 1.5.18

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Startup always shows the demo buffer (file content is never reloaded from
disk), but activePath was persisted and restored — so the welcome tab and
breadcrumb showed the previous session's file name, and Ctrl+S could have
overwritten an unrelated file. Stop persisting activePath; start at null.

- use-file-session: activePath is plain useState(null), not persisted
- storage: drop now-unused lastFile key
- pdf-export: fall back to the active tab title (e.g. "untitled") for the
  save-as-PDF default instead of the literal "marka.md export"
- app: pass active tab title into exportPreviewToPdf
- bump 1.5.18 → 1.5.19

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…correct

On Windows, Ctrl+P prints the app window via WebView2's native handler, and
the browser derives the save-as-PDF default filename from document.title —
which was the static "marka.md" from index.html, producing "marka.md.pdf".

Sync document.title to the active tab's file name (extension stripped) so the
exported PDF defaults to the document name on every print path. Falls back to
"untitled" on the welcome/empty buffer.

- bump 1.5.19 → 1.5.20

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Upstream changes included:
- feat: plantuml diagram support (mattenarle10#74)
- feat: persist view mode (mattenarle10#73)
- fix: hide empty context tray
- fix: expose theme menu in reading mode
- fix: wait for plantuml preview before opening viewer

Version conflicts resolved in favour of fork (1.5.20 > upstream 1.5.10).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add plantuml-encoder dependency (missing from upstream merge) and bump version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mattenarle10 mattenarle10 changed the title feat: tab drag-reorder, dedup tabs, print improvements, sidebar fixes (v1.5.20) feat: improve tabs, print, and sidebar polish Jun 18, 2026

@mattenarle10 mattenarle10 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the feature work here. i cleaned the release/version noise out of the branch, kept the window/session defaults intact, and local + ci checks are green.

@mattenarle10 mattenarle10 merged commit c7ced29 into mattenarle10:main Jun 18, 2026
2 checks 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.

2 participants