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: add terminal formatter #23

Conversation

guilhermeprokisch
Copy link
Contributor

@guilhermeprokisch guilhermeprokisch commented Sep 5, 2024

Hi @Colonial-Dev,

Here is a draft for implementing the terminal formatter. My Rust skills are not the best, so there might be some bugs in it. I was able to make it work in one of my projects, so it should be at least on the right track. I'm sharing more to ensure that the work is not lost.

@guilhermeprokisch guilhermeprokisch marked this pull request as ready for review September 5, 2024 22:21
@Colonial-Dev Colonial-Dev self-requested a review September 5, 2024 22:37
Copy link
Owner

@Colonial-Dev Colonial-Dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good, thank you! I don't see any bugs, just a few things that need tweaking.

@guilhermeprokisch
Copy link
Contributor Author

guilhermeprokisch commented Sep 6, 2024

@Colonial-Dev, I have addressed some of your reviews. Please take a look and let me know if it meets your approval now. I have also added an example folder demonstrating how to use it, making it easy to see the results by running cargo run --example terminal_highlight. Additionally, I have included a theme generator. Frankly, this was the most challenging part, in my opinion. I believe that shipping with some built-in themes would be better.

Add a 'main' function that prints the generated theme, so the example will compile.
@Colonial-Dev
Copy link
Owner

Looks good to me!

I believe that shipping with some built-in themes would be better.

Yeah, I feel you. The Helix theme support is almost done!

@Colonial-Dev Colonial-Dev merged commit f32ddeb into Colonial-Dev:master Sep 9, 2024
1 check passed
@guilhermeprokisch
Copy link
Contributor Author

guilhermeprokisch commented Sep 9, 2024

@Colonial-Dev Btw I'm building a project based on this feature

https://github.com/guilhermeprokisch/see/

Anything I'm here to help inkjet maintenance

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

Successfully merging this pull request may close these issues.

2 participants