{
  "id": "search/rg",
  "family": "search",
  "description": "Compact ripgrep output while preserving match lines.",
  "match": {
    "argv0": ["rg"],
    "toolNames": ["exec"]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "filters": {
    "keepPatterns": [
      "^.+:\\d+[: -].+",
      "^.+:.+",
      "error|warn|binary file|permission denied|no such file",
      "^\\d+ matches?$",
      "^\\d+ files? matched$"
    ]
  },
  "summarize": {
    "head": 10,
    "tail": 6
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 12,
    "tail": 12
  },
  "counters": [
    {
      "name": "match",
      "pattern": ".+:.+"
    }
  ]
}
