iced
iced copied to clipboard
Multi-line text input
I am fairly new to iced, and have been trying to write some basic code to test the waters.
I was just wondering if there is any easy way currently to have multi-line text input, because all the example code uses a single line input for TextInput
.
No, there is no multi-line text input support yet. This is definitely planned, but I believe we will need to tackle #33 and #34 first.
If you want to join the discussion, I shared some of my thoughts in a Zulip thread:
This will be pretty hard (see Text Editing Hates You Too).
I believe it should be a new widget with a retained API on top of some interface for text editing (
ropey
may be worth considering). Proper cursor movement and multi-line text selection will be a challenge, specially if we want to support different scripts.I feel like we should focus on rendering and layouting text properly first. The idea here would be replacing
wgpu_glyph
with a more GUI-oriented text renderer (i.e. with shaping). There are many parts of the Rust ecosystem that need to mature for this to happen, which means there are many opportunities for contributing!
I'm at the same point, looking for an easy, pure rust text editor widget ... my attempt to modify the current one wasn't fruitful so far ... I got multiple lines but everything else was off :sweat_smile:
easy, pure rust text editor widget
If that's all you want, both KAS and Druid have multi-line text boxes. Don't expect them to be perfect and I'm not sure about easy. Text is insanely complicated once you start digging into the subject.
How far along is at the moment?
@Dimev not sure, but I recommend that you be VERY patient.
Hello, is there any progress on this issue? I would love to contribute to whatever needs help to get this issue moving. I see that #33 and #34 are mentioned in an above comment, where should I start?
Definitely a nice-to-have!
Definitely a nice-to-have!
would appreciate
Hello, is there any status update for this? I'm seeing the two mentioned PRs are coming along but no idea how far away this would be.
I see #33 was closed, so not sure where this currently stands?
According to the roadmap it is planned for 0.12.
couldn't this be closed now?
Implemented in #2123.