ratatui / ratatui-macros

Macros for simplifying boilerplate for creating UI using Ratatui.
https://ratatui.rs
MIT License
29 stars 2 forks source link

Add macros from Sophacles' extra widgets #67

Open joshka opened 3 months ago

joshka commented 3 months ago

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 https://github.com/ratatui-org/ratatui/issues/118

kdheepak commented 3 months ago

Currently this is already possible:

"hello world".bold()

Is having this additionally going to be valuable?

bold!("hello world")
joshka commented 3 months ago

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