Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i knew git could use arbitrary diff filter but never realised it was this simple to use. This looks very nice.

The related? project "bat" also looks interesting.



If you are getting to check out bat, you might want to check,

- rg (ripgrep): A grep replacement

- sk (skim): A grep/fzf/fzy replacement

- fd: A find replacement that's .gitignore+.ignore aware.

- eza: A replacement for ls that's git aware

- broot: A TUI file finder to browse large directories

- yazi: A file manager (I haven't used this one too much)

sk+rg + gawk in action to find files matching some text,

            sk \
              --ansi \
              --interactive \
              --cmd 'rg --color=always --line-number "{}"' --preview 'bat --color=always $(echo {} | gawk -F: "{print \$1}") --highlight-line $(echo {} | gawk -F: "{print \$2}")' \
            | gawk \
                -F: \
                '{print $1}'


> eza: A replacement for ls that's git aware

I've been using eza (and exa before it) for a long time, but only for the pretty and colored output. I didn't even know about the git support! I now added the --git flag to my alias and will try it out. Thank you!


I love broot, I use it for everything.

I also use foot+fzy as a tiny sway dmenu replacement.. I started to make other kinds of custom tiny TUI popup menus using this strategy and it's great, since it all uses my terminal style and each is an extremely tiny 1 or 2 line script.


can broot scroll the file preview on the right? ranger can do it, so far I feel ranger is better


It can but it scrolls the cursor instead of managing real mouse scroll events a la vim mouse=a so it's not ideal.

tbh I prefer to use less for previewing files anyway.


Ranger seems quite slow for the directories I tried to use it on. Use lf, may give broot a try.


speedy for me all these years


Love these, my only change is lsd over exa (pure personal preference)


bat is great. I end up doing

curl … | prettier --parser html | bat

to get not-ugly HTML output from curl.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: