Markdown widget's text should be selectable

The markdown widget displays content that cannot be selected by the user. Because many users need to copy rendered Markdown for sharing, searching, or debugging, the inability to highlight text creates a frustrating and confusing experience.

1 Like

Selectable text is on the roadmap, as soon as it lands it should be available in the markdown “widget” as well.

hi @pml68 I know it’s on the roadmap, when can i expect it available on the main branch? I remember it’s on the 0.15 roadmap, that’s quite long to be honest.

Well 0.14 is getting released soon, if that helps. There are already implementations of it, see GitHub - squidowl/halloy: IRC application written in Rust for one. I’m making another myself, but drawing doesn’t exactly work yet due to some annoying bug.

1 Like

Hopefully select-able text will be an optional feature, even if it is default active. I have use-cases where the user not being able to select text is a feature not a defect.

Probably something you can roggle on a text, just like e.g. wrapping.

Drawing still isn’t correct for multi-line text, but I have a prototype available at iced_selection: Text selection for iced, with documentation at iced_selection - Rust.

Currently has Text, Rich text and markdown support.