mrjones2014 / ctrlg

A command line context switcher, written in Rust :crab:
https://crates.io/crates/ctrlg
MIT License
30 stars 1 forks source link

[Feature]: Support using `glow` instead of `bat` for previews #71

Closed mrjones2014 closed 2 years ago

mrjones2014 commented 2 years ago

Similar Issues

Description

Add support for using glow to render markdown previews rather than bat.

https://github.com/charmbracelet/glow

It will require changing the setting in settings.rs to specify which tool you want to use. Probably an enum, Bat, Glow, or None (None defaulting to cat).

Use Case

glow renders markdown with pizzazz! as their README.md says.

mrjones2014 commented 2 years ago

actually, in order to make it not a breaking change, I'm just going to add a new preview_with_glow setting and make it take precedence over the preview_with_bat setting.