iced_aw icon indicating copy to clipboard operation
iced_aw copied to clipboard

Add a TextArea widget

Open Luni-4 opened this issue 3 years ago • 4 comments

It would be nice to implement a TextArea widget for great blocks of text that might be hardly handled through an InputText widget.

Something like this could be a visual example:

immagine

Luni-4 avatar May 11 '21 19:05 Luni-4

This topic has come up many times (iced#839, iced#320 & iced#197).

Multi-line text input is really really hard to implement. Nevertheless, to be able to implement such a widget, the current text rendering approach needs a rework first (iced#33).

Kaiden42 avatar May 17 '21 21:05 Kaiden42

Oh, I didn't know about that, thanks for the resume, now it's pretty clear. :smile:

Feel free to close this issue anytime. I would leave it open as a reminder, but no problem if it is going to be closed.

Luni-4 avatar May 17 '21 22:05 Luni-4

Assuming I don't care about font fallback and non-English text, is this really needed for multi-line input?

m00nwtchr avatar May 22 '22 20:05 m00nwtchr

It probably doesn't make sense to develop a widget and then having to rewrite large chunks of it when better font rendering is added.

kaimast avatar May 22 '22 21:05 kaimast

I want to coding a Rich Text Editor, but Text widget has no "Selection()", "Range()" methods.

Rick9622092 avatar Jan 05 '23 01:01 Rick9622092

this will probably get much better once cosmic-text is added to Iced

genusistimelord avatar Jan 05 '23 02:01 genusistimelord

Cosmic Text is finally in iced since the last update. also there is a cosmic multi line text box. Which is not in iced_aw. https://github.com/pop-os/cosmic-text/tree/main/examples/editor-libcosmic/src

genusistimelord avatar Aug 04 '23 15:08 genusistimelord

I think this should be closed now that TextEditor got merged?

max397574 avatar Oct 27 '23 16:10 max397574

I agree, thanks a lot for the reminder!

Luni-4 avatar Oct 27 '23 20:10 Luni-4