Feature request: support for tsv files in pretty bat
Open
pending closure
prettybat
- Dominant language
- Shell
- Stars
- 1.6k
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Description
For TSV files, the default `bat` behavior doesn't take data length into account to define header width.
I'd like to propose using `column` to format such files, like the following function:
```bash
# optionally have "--wrap never" for wider files
function() {
file="$1"
shift
column --keep-empty-lines --table -s $'\t' -o $'\t' "$file" | bat -l tsv --tabs 0 --file-name "$file" "$@"
}
```
Contributor guide
Research direction
Start by locating the pretty bat entry point and its current TSV handling. Compare it with the proposed column pipeline, including argument forwarding and optional wrapping; done means TSV input is aligned by column before being passed to bat.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100