Commit graph

11 commits

Author SHA1 Message Date
vrubelroman
fae53d6fd3 feat: remote image preview — detect via magic bytes, download to temp for overlay 2026-05-13 13:28:19 +03:00
vrubelroman
a483267bd9 feat: extended preview for PDF, audio, video via external utilities
Add rich preview support for three new file categories by leveraging
external CLI tools with graceful fallback when tools are missing.

- PDF: text extraction via pdftotext, page count via pdfinfo
- Audio: metadata via ffprobe (duration, bitrate, codec, sample rate, channels)
- Video: metadata via ffprobe (duration, bitrate, video/audio codec, resolution)
- New PreviewKind constants: PDF, Audio, Video
- New Metadata fields for extended preview data
- New extension maps and Category() entries for pdf/audio/video
- Icons: PDF (󰷉), audio (󰋋), video (󰋲) in preview header

Closes #5
2026-04-27 19:25:03 +03:00
vrubelroman
bba8783f10 Fix directory preview layout to exactly match browser pane columns
Root cause: renderPreviewPane() was stuffing directory entries into the
viewport model via SetContent(), then rendering through
renderPreviewContent() which wraps the viewport in an additional
border+padding box. This reduced the effective content width by 4
characters compared to the browser pane's innerWidth (width-2), causing
column misalignment where the date column would wrap to the next line.

Fix: For directory previews, directly render entries using the same
renderPaneRows() and renderColumnsHeader() functions as the browser
pane, at the same innerWidth. A temporary BrowserPane is created with
the directory entries, and renderPaneRows() is called with active=false,
producing pixel-identical output to the main file browser.

Removed renderDirectoryPreviewBody() which is no longer needed.
2026-04-27 16:52:44 +03:00
vrubelroman
3e34944f99 feat: add 11 new color themes (ayu-dark, breeze, catppuccin-lavender, cyberpunk, dracula, eldritch, kanagawa, kanagawa-paper, rose-pine, solarized-dark, vesper) 2026-04-27 14:40:44 +03:00
vrubelroman
912de45e19 Refine image preview integration 2026-04-24 22:09:54 +03:00
vrubelroman
6b23717572 Add terminal image preview via chafa and release v0.1.3 updates 2026-04-24 15:35:11 +03:00
vrubelroman
780150500d Add auto icon mode fallback and Nerd Font docs 2026-04-24 14:44:49 +03:00
vrubelroman
5a27141298 Fix info pane Esc close and preview background rendering 2026-04-24 11:05:31 +03:00
vrubelroman
e0117650de Fix preview highlight background artifacts 2026-04-24 10:31:22 +03:00
vrubelroman
bd67696fb0 Add syntax highlighting to text previews 2026-04-22 23:35:42 +03:00
vrubelroman
059f925e00 Initial vcom TUI prototype 2026-04-22 22:10:50 +03:00