Skip to content

feat: image viewer tab and file browser support#10

Merged
gdilla merged 3 commits into
mainfrom
feat/image-viewer-and-browser
Mar 15, 2026
Merged

feat: image viewer tab and file browser support#10
gdilla merged 3 commits into
mainfrom
feat/image-viewer-and-browser

Conversation

@gdilla
Copy link
Copy Markdown
Owner

@gdilla gdilla commented Mar 15, 2026

Summary

  • Show image files (PNG, JPG, GIF, etc.) in the sidebar file browser
  • Clicking an image opens it in a built-in image viewer tab (not as text)
  • Image viewer displays the file centered with filename info bar

Follow-up to #9 (which added image rendering in the WYSIWYG editor).

Test plan

  • All 222 tests pass
  • Typecheck clean
  • Manual: open a folder with images — PNGs visible in sidebar
  • Manual: click a PNG — opens in image viewer tab
  • Manual: switch between image and markdown tabs

🤖 Generated with Claude Code

gdilla and others added 3 commits March 14, 2026 21:40
The read_dir_recursive function had a hardcoded allowlist of file
extensions that excluded image formats. Added all supported image
extensions so PNG/JPG/GIF/etc. files appear in the file tree.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Clicking PNG/JPG/etc. in the file tree now opens them with the OS
default viewer (Preview.app on macOS) instead of trying to read them
as text into a markdown tab.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Clicking an image file in the sidebar now opens it in a built-in image
viewer tab instead of trying to read it as text. The viewer uses the
Tauri asset protocol to display the image centered with a subtle shadow
and an info bar showing the filename.

- Add `isImage` flag to Tab type
- Add `openImageFile()` to tabs store
- Create ImageViewer.vue component
- Conditionally render ImageViewer in App.vue for image tabs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@gdilla gdilla merged commit 52cbb9e into main Mar 15, 2026
1 check failed
@gdilla gdilla deleted the feat/image-viewer-and-browser branch March 15, 2026 04:40
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.

1 participant