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

Add an option to use unicode in tables #522

Closed
cocreature opened this Issue Mar 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@cocreature
Collaborator

cocreature commented Mar 23, 2017

Unicode has a bunch of box drawing characters which enable relatively pretty tables even in terminals. It would be nice if hledger provided an option to make use of those instead of the pure ASCII tables since I personally find them easier to read.

I’ll probably give this a shot myself but I’m not sure when I’ll get to that so if someone else wants to pick this up be my guest.

@simonmichael

This comment has been minimized.

Show comment
Hide comment
@simonmichael

simonmichael Mar 23, 2017

Owner

Good idea. Here are some relevant table-drawing libs:

  • tabular - renders ascii/html/latex/csv. What we currently use.
  • table-layout - renders unicode/borderless. Supports multiline cell content and alternating styles.
  • colonnade - renders ascii/html/ui widgets.

Ideally, we will generate many of the above formats and also various markdown/org/emacs table formats. I suppose we could use more than one of these libs.

Owner

simonmichael commented Mar 23, 2017

Good idea. Here are some relevant table-drawing libs:

  • tabular - renders ascii/html/latex/csv. What we currently use.
  • table-layout - renders unicode/borderless. Supports multiline cell content and alternating styles.
  • colonnade - renders ascii/html/ui widgets.

Ideally, we will generate many of the above formats and also various markdown/org/emacs table formats. I suppose we could use more than one of these libs.

cocreature added a commit to cocreature/hledger that referenced this issue Mar 28, 2017

simonmichael added a commit that referenced this issue Mar 29, 2017

Add an option to use unicode in balance tables (#528)
* Add an option to use unicode in balance tables

fixes #522

* Add a test for unicode tables

* Document --pretty-tables

* Support --pretty-tables in BalanceView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment