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

Add macros from Sophacles' extra widgets #67

Open
joshka opened this issue Aug 10, 2024 · 2 comments
Open

Add macros from Sophacles' extra widgets #67

joshka opened this issue Aug 10, 2024 · 2 comments

Comments

@joshka
Copy link
Member

joshka commented Aug 10, 2024

The style related widgets (bold! etc.) are pretty nice:
https://github.com/sophacles/extra-widgets/blob/main/src/text_macros/mod.rs

suggested in an issue ratatui/ratatui#118

@kdheepak
Copy link
Collaborator

kdheepak commented Aug 10, 2024

Currently this is already possible:

"hello world".bold()

Is having this additionally going to be valuable?

bold!("hello world")

@joshka
Copy link
Member Author

joshka commented Aug 10, 2024

Maybe (unsure), the difference is runtime via an imported trait vs compile time via expansion.

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

2 participants