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

feat/pager: syntax-rendering in pager #804

Open
dextermallo opened this issue Jan 16, 2025 · 0 comments
Open

feat/pager: syntax-rendering in pager #804

dextermallo opened this issue Jan 16, 2025 · 0 comments

Comments

@dextermallo
Copy link

Description

Hi Charm team, love the ideas of gum and other handy utilities!
I have an idea for the command pager: syntax-highlight when outputting the contents. (which is one of my use cases)

Describe the solution you'd like

  1. I am unsure whether it is applicable to introduce other packages like alecthomas/chroma to do the full syntax highlight on every type of file, so I use glamour to do it first to see if the idea is applicable.
  2. Followed by 1, it only supports with --syntax-highlight=markdown now.
  • Add a flag --syntax-highlight=<language> under /pager/options.go

Example

demo

I am quite new to Go but would love to do on other languages as well :)

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

No branches or pull requests

2 participants