You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a large file, certainly I can just HEAD it to get the lines I want. I'd love to run the following:
vd -n100000 filename.csv
and have visidata simply open the first 100,000 records of the file. I know I can ctrl-c to stop along the way on a large file but that's not consistently stopping in the same place. I also know that I can head the file, if the file supports that, which parquet doesn't.
Am I just dreaming?
what should the helpstring say
This value indicates how many records will be loaded from the input file (default, all of them)
where should this command go in the menu system
ON INPUT, not in the menu system.
The text was updated successfully, but these errors were encountered:
anjakefala
changed the title
It would be nice to specify, as a command-line parameter, the number of lines to import from a file...
Allow specifying on CLI the number of lines to load from a file
Mar 20, 2024
Hi @jwnacnud, I added a --max-rows option that works on most source sheets. The -n CLI flag is already an alias for --nonglobal, so there's no short option alias for now. If you can think of a reasonable one (that isn't already used), please suggest it.
If I have a large file, certainly I can just HEAD it to get the lines I want. I'd love to run the following:
vd -n100000 filename.csv
and have visidata simply open the first 100,000 records of the file. I know I can ctrl-c to stop along the way on a large file but that's not consistently stopping in the same place. I also know that I can head the file, if the file supports that, which parquet doesn't.
Am I just dreaming?
This value indicates how many records will be loaded from the input file (default, all of them)
ON INPUT, not in the menu system.
The text was updated successfully, but these errors were encountered: