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

Support UTF-8 table symbols #197

Closed
aaabramov opened this issue Nov 7, 2021 · 1 comment
Closed

Support UTF-8 table symbols #197

aaabramov opened this issue Nov 7, 2021 · 1 comment

Comments

@aaabramov
Copy link

aaabramov commented Nov 7, 2021

What do you think of adding support for UTF-8 table symbols? At first sight, it could be easily added as a render option.

But also we would need to properly assign corner and center symbols like ╔, ╬, ╣. But I think it would be a fantastic addition!

Unfortunately, I am not strong enough in Go to open a PR for this :(

Example:

╔═════════════════════╦═══════════════════════╗
║      Old name       ║       New name        ║
╠═════════════════════╬═══════════════════════╣
║ findOne(…)          ║ findById(…)           ║
╠═════════════════════╬═══════════════════════╣
║ save(Iterable)      ║ saveAll(Iterable)     ║
╠═════════════════════╬═══════════════════════╣
║ findAll(Iterable)   ║ findAllById(…)        ║
╠═════════════════════╬═══════════════════════╣
║ delete(ID)          ║ deleteById(ID)        ║
╠═════════════════════╬═══════════════════════╣
║ delete(Iterable)    ║ deleteAll(Iterable)   ║
╠═════════════════════╬═══════════════════════╣
║ exists()            ║ existsById(…)         ║
╚═════════════════════╩═══════════════════════╝

Possible combinations:

heavy            heavy + light    light            double-lined
┏━━━━━━┳━━━━━━┓  ┏━━━━━━┯━━━━━━┓  ┌──────┬──────┐  ╔══════╦══════╗
┃ col1 ┃ col2 ┃  ┃ col1 │ col2 ┃  │ col1 │ col2 │  ║ col1 ║ col2 ║
┣━━━━━━╋━━━━━━┫  ┠──────┼──────┨  ├──────┼──────┤  ╠══════╬══════╣
┃ val1 ┃ val2 ┃  ┃ val1 │ val2 ┃  │ val1 │ val2 │  ║ val1 ║ val2 ║
┗━━━━━━┻━━━━━━┛  ┗━━━━━━┷━━━━━━┛  └──────┴──────┘  ╚══════╩══════╝

Here is how it could look like:
image

@craigbox
Copy link

craigbox commented Feb 2, 2023

See #207 for an implementation.

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

3 participants