4 ms·
hi @burntsushi, fan of your tool. like it's speed and defaults. I use windows : didn't understand what you mean by "install `bat`" to use a pager. I use c
by anjanb 3y ago
hi @burntsushi,
fan of your tool. like it's speed and defaults.
I use windows : didn't understand what you mean by "install `bat`" to use a pager.
I use cygwin and WSL for my unix needs. I have more and less in cygwin for use in windows.
- burntsushi 3y agoI referenced bat because I've found that suggesting cygwin sometimes provokes a negative reaction. The GP also mentioned needing to install GNU tooling as if it were a negative. bat is fancy pager written in Rust. It's on GitHub: https://github.com/sharkdp/bat https://github.com/sharkdp/bat
- anjanb 3y agoI'm sure you know but windows command prompt always came with its inbuilt pager -- more. So, you could always do "dir | more" or "rg -p "%*" | more ". (more is good with colors without flags)
- burntsushi 3y agoI didn't! I'm not a Windows user. Colors are half the battle, so that's good. Will it only appear if paging is actually needed? That's what the flags to `less` do in my wrapper script above. They are rather critical for this use case.
- ilyagr 3y agoI don't believe bat is a paper; it's more of a pretty-printer that tends to call less. Two pallets that should work on Windows are https://github.com/walles/moar https://github.com/walles/moar (golang) and https://github.com/markbt/streampager https://github.com/markbt/streampager (Rust). There might also be a newer one that uses rust, I'm unsure.
- ttyprintk 3y agoI'd recommend ov for Windows users. https://github.com/noborus/ov https://github.com/noborus/ov bat on Windows does page, but I believe it's only available on Choco and not winget.
- ilyagr 3y agoGood find, thanks! I'll check if I prefer it to moar. As for bat, according to https://github.com/sharkdp/bat#using-bat-on-windows https://github.com/sharkdp/bat#using-bat-on-windows, the Chocolatey package simply installs `less` alongside `bat`. Seems like a good idea, but I haven't tried it.
- ttyprintk 3y agoAh, thanks for doing the footwork.