Comments (2)
Thanks for your feedback.
Reverse -H not to confuse newcomer with no data displayed, or at least don’t require it in case of single line.
The problem you described is actually a bug existed in a crate which csview
depends on. The header was wrongly omited when the table is empty. -H/--no-headers
should work the same as the manual describes: tell csview the input has no header row. I fixed it temporarily by a patch.
$ echo 'Name;Age;Sex' | csview -d';'
+------+-----+-----+
| Name | Age | Sex |
+------+-----+-----+
Make csview smarter in terms of recognizing common delimiters (for example, check this and that),
because comma is often used as decimal separator or even as is in cases like “Pancakes;0,2kcal;Use flour, milk, eggs, honey”.
There is no silver bullet. Think of the following input:
a,b;c,d;e
a|b;c,d
a<tab>b;c<tab>d
Maybe someone thinks that a priority can be assigned to every possible seperators to make guesses. But such a solution is too complicated and still cannot meet everyone's needs. So I prefer keeping it simple and prief. Specify it explicitly if a seperator other than comma is needed since it's not that hard to do.
from csview.
Specify it explicitly if a seperator other than comma is needed since it's not that hard to do.
;
is needed, yes.
from csview.
Related Issues (14)
- Align and format numbers? HOT 1
- Installation on Ubuntu 20.04 HOT 1
- Out-of-memory issues with large tsv-file HOT 4
- UTF-8 Error HOT 2
- Input csview command without parameter will get no repsonse in terminal HOT 1
- 能支持添加一个参数,补充一个序号列嘛 HOT 2
- question: Does csview fixed the stream rendering? HOT 7
- Multiline-wrapping HOT 2
- Support distribution on Linux via Linuxbrew HOT 3
- Expose `Table` as a crate? HOT 1
- Add it to a Ubuntu PPA for apt (does not compile on 20.04.4) ? HOT 5
- Center Headers? HOT 1
- Introduce `--sort`: Sort by Header HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csview.