ratatui / ratatui-macros

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

Add macros from Sophacles' extra widgets #67

Open joshka opened 1 month ago

joshka commented 1 month 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 1 month ago

Currently this is already possible:

"hello world".bold()

Is having this additionally going to be valuable?

bold!("hello world")
joshka commented 1 month ago

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