News for hackers. Stuff that matters.
Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by moritonal on Monday September 27, 2021 @10:41AM (#28671205)
Man.. TV is such a good name for a visualiser tool that it'd be excellent if it could pretty-print any content given to it.

Does your framework support the idea of pre-parsing the file's content and selecting an appropriate renderer, or is it fairly tied to CSVs?

Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by flusteredBias on Monday September 27, 2021 @11:34AM (#28671955)
I would need more details on what you mean by "pre-parsing". It works with any deliminator, it could be comma-separated, pipe-separated, etc.
Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by mixmastamyk on Monday September 27, 2021 @12:06PM (#28672465)
Doesn't need to be pre-parsed. Perhaps give the filename to the utility instead of content via stdin. Then filename gives a hint. If there is none, run "file filename" (via library) beforehand.
Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by inostia on Monday September 27, 2021 @01:29PM (#28673577)
I actually like `tidy` better and honestly would rather have `cat a.csv | tidy ...`. But it's probably already a thing.
Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by flusteredBias on Thursday September 30, 2021 @12:14PM (#28708035)
You don't have to make the alias `tv`. Feel free to make your alias tidy='tidy-viewer'.
Re:Show HN: Tidy Viewer – a cross-platform CSV pretty printe... by hnlmorg on Monday September 27, 2021 @06:14PM (#28676694)
Nice idea. I might actually work on this myself