Skip to content
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

(feature): Horizontal delimiter #19

Open
trakhimenok opened this issue Nov 10, 2017 · 1 comment
Open

(feature): Horizontal delimiter #19

trakhimenok opened this issue Nov 10, 2017 · 1 comment

Comments

@trakhimenok
Copy link

It would be nice if it were possible to have setting for horizontal delimiter(s) so we can split different sets of data.

Something like:

=====================
ID | Name  | Value  |
---|-------|--------|
 1 | Jack  | blue   |
 2 | Jack  | brown  |
---|-------|--------|
 3 | Alice | red    |
 4 | Alice | yellow |
=====================

For example do draw delimiter line if we pass a row with single value? Would be nice if different characters can be used: -, =, pseudo-graphic ASCII.

So probably a settings should be a slice of strings to be treated as delimiters.

@ryanuber
Copy link
Owner

Hey @astec, interesting idea. I could see potentially adding settings for a horizontal split line. I could also see drawing outlines for a nice table-looking output, but IMO that should be a separate wrapper over Columnize, or perhaps a separate wrapper within this package. I probably won't be tackling this myself any time soon, but I would love a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants