Live data from Hacker News

Bat v0.26.0

github.com

21–30 of 78 posts

Re: Bat v0.26.0

#21

One of the first programs I install in any new setup. Just having the line numbers in your snippets, when all your communication is over asynchronous platforms with UX features designed by the Greatest Minds at Microsoft, streamlines discussions do much.

oh you cheeky cat ! w3c did a huge disservice by not including the ‘snarky’ tag in their specification.

Re: Bat v0.26.0

#22

When I saw this, I was hoping that [The Bat!]( https://www.ritlabs.com/en/products/thebat/ ) had been released as FOSS. This is still pretty cool.

OMG the flashback... I remember using "The Bat!" and Rimart's "Becky! Internet Mail"

Exclamation marks seemed to be popular in names back in the day :D

Re: Bat v0.26.0

#23

The `--pager=builtin` change is interesting; first time I've heard of minus. > Traditional pagers like more or less weren't made for integrating into other applications. They were meant to be standalone binaries that are executed directly by users. However most applications don't adhere to this and exploit these pagers' functionality by calling them as external programs and passing the data through the standard input…

> Do people widely agree with this? That sounds less like 'exploitation' to me and more like 'the way Unix works'.

I personally don't. UNIX is made to be composable, and it's composition. more, less, most all consider pipe input as first-class citizens. I'm personally fond of "grep --color=always file.ext | less --raw" to page colored output.

> Is that really the best approach?

I don't think so. If I was the developer, I'd embed the pager only into the Windows build by default, and use system pagers on other systems (by default). If any person/distro wants to use the built-in pager, it'd be their choice.

I don't like when developers bloat their own code with good intentions, but drift from their nice state to something bloated.

Re: Bat v0.26.0

#24

bat is one of the few "new wave" tools that I install without hesitation, with no worries about stability issues or silent downsides. It has great defaults that make it feel like it always does the right thing for the context, just an unambiguous enhancement to my terminal experience.

any other recommendation?

Re: Bat v0.26.0

#25

bat is one of the few "new wave" tools that I install without hesitation, with no worries about stability issues or silent downsides. It has great defaults that make it feel like it always does the right thing for the context, just an unambiguous enhancement to my terminal experience.

I probably have a bunch of such tools installed on my main machine. The problem is you actually need to remember to use them, and then maybe their command line switches to get the desired output. Whereas cat/less/git/vim are muscle memory. Not to mention that you first need to get over the hum of installing them in your system, likely needing to grab the latest Go/Rust/Zig toolchain along the way.

So while I admire the engineering effort, I still find utility of these tools limited.

Re: Bat v0.26.0

#26

bat is one of the few "new wave" tools that I install without hesitation, with no worries about stability issues or silent downsides. It has great defaults that make it feel like it always does the right thing for the context, just an unambiguous enhancement to my terminal experience.

I probably have a bunch of such tools installed on my main machine. The problem is you actually need to remember to use them, and then maybe their command line switches to get the desired output. Whereas cat/less/git/vim are muscle memory. Not to mention that you first need to get over the hum of installing them in your system, likely needing to grab the latest Go/Rust/Zig toolchain along the way. So while I admire t…

brew usually manages to install these tools for me with no problems. And on the memory point, there's always `alias` or adding a symlink in ~/.local/bin. But, yeah, I have the exact same problem remembering to use `eza`. For some reason, I don't find `bat` as much of a problem; ls is probably more ingrained.

Re: Bat v0.26.0

#27

bat is one of the few "new wave" tools that I install without hesitation, with no worries about stability issues or silent downsides. It has great defaults that make it feel like it always does the right thing for the context, just an unambiguous enhancement to my terminal experience.

any other recommendation?

Along with bat, these are my main ones that I install always:

fd, a better find: https://github.com/sharkdp/fd

ripgrep (rg) a modern grep: https://github.com/BurntSushi/ripgrep

eza for ls replacement: https://github.com/eza-community/eza

duf is a cleaner df: https://github.com/muesli/duf

dust for du: https://github.com/bootandy/dust

Also fish + starship + yazi + helix, all of which mostly work perfectly with the defaults

Re: Bat v0.26.0

#28

The `--pager=builtin` change is interesting; first time I've heard of minus. > Traditional pagers like more or less weren't made for integrating into other applications. They were meant to be standalone binaries that are executed directly by users. However most applications don't adhere to this and exploit these pagers' functionality by calling them as external programs and passing the data through the standard input…

Most Unix CLI tools don't respect the unix philosophy anyway. For example a lot support something like `--output file.txt` when the Unix philosophy would say to not implement that and just use `>> file.txt`

Re: Bat v0.26.0

#29

Earlier quoted context omitted.

any other recommendation?

Along with bat, these are my main ones that I install always: fd, a better find: https://github.com/sharkdp/fd ripgrep (rg) a modern grep: https://github.com/BurntSushi/ripgrep eza for ls replacement: https://github.com/eza-community/eza duf is a cleaner df: https://github.com/muesli/duf dust for du: https://github.com/bootandy/dust Also fish + starship + yazi + helix, all of which mostly work perfectly with the defa…

What is helix? Haven't heard of it before, I don't think.

Re: Bat v0.26.0

#30

Earlier quoted context omitted.

any other recommendation?

Along with bat, these are my main ones that I install always: fd, a better find: https://github.com/sharkdp/fd ripgrep (rg) a modern grep: https://github.com/BurntSushi/ripgrep eza for ls replacement: https://github.com/eza-community/eza duf is a cleaner df: https://github.com/muesli/duf dust for du: https://github.com/bootandy/dust Also fish + starship + yazi + helix, all of which mostly work perfectly with the defa…

super useful list, you probably should expand it into a blog post
Post reply on HN