-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Review how we configure of which format to save in #2286
Comments
To answer your first question, I went through and looked in the source for
And here's what it can read, but not write:
And there seem to be a few it can write but not read: Where is a good place you'd like to see this information? It could go in a table like https://visidata.org/docs/formats/, perhaps in one of the guides? Accessible by a command like |
This does not work currently, but it's on my wishlist too. I'd be interested in a PR that addressed this. |
Can the file be decompressed manually and then opened as .vds? If so, then it's likely a bug in the vds loader (otherwise it's a bug in the vds saver). This is a bug either way though. Also I would support |
I'm not sure what the best way to do this is, but some thoughts:
|
@saulpw I loaded the vds file, saved it as
|
Two stories about how I could use more guidance or guard rails when saving work. Presently, I have to look up and refer to the supported formats, and then my choices often don't work.
Usenet
VisiData helped me find Elizabeth Edwards' (famous) participation on Usenet's alt.support.grief; vd can read Internet Archives mbox format and make quick work of searching.
Saving the derivative sheet is tricky though. vd defaults to tsv (even if I give the mbox extension), but there's is no mbox save support, so I don't know what the resulting file format is anymore and I don't think vd does either when I return to the file. (I can save to csv, which is okay, but the result has some odd character conversions.)
Reddit
I'm analyzing posts on a subreddit which are in a "zstandard compressed ndjson" file. vd opens it well, but after some manipulations, I want to save it so I can return to the data as is, so vds seems like a natural format. And it works! However, I think, why not save it as compressed, and the resulting file
BestofRedditorUpdates_submissions.vds.zst
is smaller, but cannot be reopened: "Unsupported operation: Underlying stream is not seakable."Consequently, relying on the file extension is problematic outside of the simplest cases because:
The text was updated successfully, but these errors were encountered: