joshuto icon indicating copy to clipboard operation
joshuto copied to clipboard

Can not preview text file properly

Open e190 opened this issue 3 years ago • 4 comments

The configuration I use directly is https://github.com/kamiyaa/joshuto/tree/main/config. But I still can't preview a text file using bat. I am sure THAT I have installed bat. 图片

Can not preview: 图片

e190 avatar Mar 30 '22 02:03 e190

Same bug here.

ghost avatar Apr 06 '22 14:04 ghost

I have the ansi color output feature disabled by default right now as ansi-to-tui is still unstable. In order to continue publishing to crates.io, all dependencies must be versioned and not a git repo. If you want to re-enable this feature, add syntax_hightlight to the default features in Cargo.toml:

[features]
default = [ "devicons", "recycle_bin", "syntax_highlight" ]

Hope this helps!

kamiyaa avatar Apr 09 '22 16:04 kamiyaa

If anyone is installing through cargo, here's the command:

cargo install joshuto --features syntax_highlight

alexzanderr avatar Jul 23 '22 10:07 alexzanderr

I think the ansi-to-tui problems are solved, right?

Can't we make syntax_highlight a default feature again?

DLFW avatar Jul 23 '22 11:07 DLFW

Closed via b44da4d3c6a4b2764f563ce392afeb7fe9632efc

kamiyaa avatar Sep 09 '22 15:09 kamiyaa

Facing same issue with the package provided on homebrew(0.9.4). Maybe a new release is required.

KeqiZeng avatar Jun 19 '23 14:06 KeqiZeng