3 ms·
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 interestin
by tomxor 2y ago
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.
- dietr1ch 2y agoIf 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}'
- arjvik 2y agoLove these, my only change is lsd over exa (pure personal preference)
- tomxor 2y agoI 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.
- synergy20 2y agocan broot scroll the file preview on the right? ranger can do it, so far I feel ranger is better
- qazxcvbnm 2y agoRanger seems quite slow for the directories I tried to use it on. Use lf, may give broot a try.
- synergy20 2y agospeedy for me all these years
- tomxor 2y agoIt 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.
- gawa 2y ago> 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!
- adiabatty 2y agobat is great. I end up doing curl … | prettier --parser html | bat to get not-ugly HTML output from curl.