Terminal image, video, and Markdown viewer
cargo install mcator ~
git clone https://github.com/Skardyy/mcat
cd mcat
cargo install --path ./crates/corefollow the instructions at the latest release
Homebrew (macOS/Linux)brew install mcatyay -S mcat-binenvironment.systemPackages = [ pkgs.mcat ];scoop install mcat| Input |
|---|
Inputs can be:
The type of each input is inferred automatically, and it continues through the pipeline until it reaches the output format the user requested.
| In the pipeline |
|---|
For example, if the user runs:
mcat file.docx file.pdf -o inlinemcat will:
file.docx and file.pdf into a single Markdown fileYou can also start from the middle of the pipeline.
For example:
mcat file.html -o image > image.pngThis starts at an HTML file and directly converts it into a PNG image.
| Explanation of the blocks |
|---|
Markdown - set when -o md or when the stdout isn't the terminal (piped)
Markdown Viewer is markdown with ANSI formatting, and is the default for any non video / image file. (the -c flag forces it)
HTML set when -o html -- only works for non image / video files
PNG Image set when -o image and gives an image
Interactive Viewer set when -o interactive or -I and launches an interactive view to zoom and pan the image in the terminal.
Inline Display set when -o inline or -i and prints the content as image in the terminal
…To see which file types support which features, see the table here.
Chromium (for rendering HTML/Markdown/Text to image)Mcat will continue working without them
mcat --fetch-chromiummcat --fetch-ffmpegNo open issues yet, or sync has not completed.