Skip to content

feat: auto-detect .tsv/.tab and apply -t #620

@lovetts-evyn

Description

@lovetts-evyn

The standard file extensions for a TSV are .tsv and .tab.

zsv commands where the argument is a .tsv or .tab file should choose the -t option by default.

Current

> zsv pretty data/tysto.tsv | head -n 5
uk	us
accessorise	accessorize
accessorised	accessorized
accessorises	accessorizes
accessorising	accessorizing

Expected

> zsv pretty data/tysto.tsv | head -n 5
uk              |us
accessorise     |accessorize
accessorised    |accessorized
accessorises    |accessorizes
accessorising   |accessorizing

The expected output was produced using zsv pretty -t data/tysto.tsv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions