visidata icon indicating copy to clipboard operation
visidata copied to clipboard

[stdin/-f] The `-n -f` flag is sticky for all files listed as arguments.

Open frosencrantz opened this issue 6 months ago • 5 comments

Small description The -n -f flag is sticky for all files listed as arguments.

Expected result The -n -f type flag only applies to the next file listed as an argument.

Actual result with screenshot

https://asciinema.org/a/uY82MQyWCbFr0axdg9oS42y4I

Steps to reproduce with sample data and a .vd

The jsonl file is still being read as a csv. Though if you try to open the jsonl file after vd has started it works properly.

cat sample_data/benchmark.csv | vd -n -f csv - sample_data/benchmark.jsonl

Additional context Please include the version of VisiData and Python. Latest develop branch.Python 3.9.2

frosencrantz avatar Dec 22 '23 23:12 frosencrantz