#!/bin/sh -e

color=""
if [ -t 1 ]; then
  color="--color=always"
fi

rg -uuu --no-heading --no-line-number "${color}" . "$@" \
  | sort -t: -k1 \
  | column -s: -t -l2
