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

Prettier output #217

Open
leumasme opened this issue Jun 6, 2023 · 1 comment
Open

Prettier output #217

leumasme opened this issue Jun 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@leumasme
Copy link

leumasme commented Jun 6, 2023

I've previously used Insect but would like to switch to fend for various reasons.
Something that was immediately obvious is that Insect's output is prettier (although way larger).
A small comparison:
image
image
This is with fend already configured to use some color as by default it would be almost exclusively white

[colors]
number = { foreground = 'cyan' }
string = { foreground = 'green' }
identifier = { foreground = 'white', bold = true }
keyword = { foreground = 'yellow', bold = true, underline = true }
built-in-function = { foreground = 'magenta', bold = true }
date = { foreground = 'red' }
other = { foreground = '256:200' }

Maybe I'm just not enough of a cli user to appreciate fend's compactness, but to me, insect's output looks way nicer and easier to read:

  • the error message is colored and formatted over multiple lines at useful points
  • it spells out the output unit (ton instead of t)
  • it has a pretty and colorful default theme
  • it echos its interpretation of the input (which may be somewhat useful to catch misinterpretations)
  • it puts a newline above and below the output, making it easier to recognize different inputs

It would be great if we could have something like this as an option in fend too!

@printfn
Copy link
Owner

printfn commented Jun 7, 2023

You’re right, that other output does look much nicer than what fend currently has. Maybe some of the verbosity does go a little bit too far, at least when there aren’t any errors, but especially the error messages are way more user-friendly I feel like.

I’m not sure how much time I have to improve all of this in the near future, but I’d happily accept PRs!

@printfn printfn added the enhancement New feature or request label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants