-
-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stdin/-f] The -n -f
flag is sticky for all files listed as arguments.
#2187
Comments
This is by design; |
The
Yes that would be very useful then. The order of the arguments makes a difference in how vd displays which sheet first and ordering of the others. I might read from stdin, and have that as the initial sheet, but want to include related data as separate arguments, but the related data might have other formats, like a directory or different files of various formats. |
Options handling is complicated. I wish it were simpler but there are so many cases to take into account. The key thing here is that options within vd can be global defaults, which can be overridden by specific sheet class, which can be overridden by a specific sheet instance. When you specify options on the CLI, they become the global defaults, which then apply to every sheet which hasn't overridden them specifically. But if you still want the original global defaults to apply, whether the builtin defaults or your personal defaults like If this is not clear, can you explain what is confusing? This will help us figure out what needs to be explained better in general. |
Thanks, @saulpw that helps. The |
@frosencrantz btw I just tested it and passing
We need to document this in https://www.visidata.org/docs/loading/#loading-multiple-datasets-simultaneously |
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.
Additional context
Please include the version of VisiData and Python. Latest develop branch.Python 3.9.2
The text was updated successfully, but these errors were encountered: