Crates.io | previuwu |
lib.rs | previuwu |
version | 0.0.0 |
source | src |
created_at | 2022-07-24 12:19:33.601184 |
updated_at | 2022-07-24 12:19:33.601184 |
description | A generic previewer that can preview anything as everything |
homepage | https://github.com/sayanarijit/previuwu |
repository | https://github.com/sayanarijit/previuwu |
max_upload_size | |
id | 631962 |
size | 79,340 |
A generic previewer that can preview anything as everything.
Uses egui to render the preview window.
STATUS: Proof of Concept (⚠️ heavy work in progress).
Better don't install it as of now, unless you want to contribute.
cargo install --git https://github.com/sayanarijit/previuwu
Preview a single file:
previuwu /path/to/file
Allow streaming input from stdin:
previuwu /path/to/file --pipe -
Also allow streaming input from a named pipe1:
# mkfifo path/to/input.fifo
previuwu /path/to/file --pipe - --pipe path/to/input.fifo
Example usage with xplr:
# Create a fifo file
mkfifo /tmp/xplr.fifo
# Run previuwu in background (will close automatically when done)
previuwu --pipe /tmp/xplr.fifo &
# Run xplr with fifo enabled
xplr --on-load 'StartFifo: /tmp/xplr.fifo'
I plan to support as many input types as possible.
Very basic (ugly) support for the following file types has been implemented:
First of all, thank you.
Please go through src/preview.rs
and try to implement laoding and/or rendering as many file types as you can.
Parsing is the easy part. Rendering might require some experience with egui.
Some files can be really slow to load/render in development mode (cargo run
). Try running in release mode (cargo run --release
).