iced icon indicating copy to clipboard operation
iced copied to clipboard

Multi-line text input

Open wesrer opened this issue 4 years ago • 9 comments

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.

wesrer avatar Apr 24 '20 03:04 wesrer

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!

hecrj avatar Apr 25 '20 01:04 hecrj

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:

the-drunk-coder avatar Dec 16 '20 21:12 the-drunk-coder

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.

dhardy avatar Dec 17 '20 16:12 dhardy

How far along is at the moment?

Dimev avatar Jul 26 '21 14:07 Dimev

@Dimev not sure, but I recommend that you be VERY patient.

13r0ck avatar Jul 28 '21 01:07 13r0ck

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?

benluelo avatar Nov 20 '21 05:11 benluelo

Definitely a nice-to-have!

CodeDead avatar Mar 16 '22 01:03 CodeDead

Definitely a nice-to-have!

jellybobbin avatar May 11 '22 08:05 jellybobbin

would appreciate

henry-lang avatar Jun 15 '22 02:06 henry-lang

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.

adracea avatar Feb 28 '23 12:02 adracea

I see #33 was closed, so not sure where this currently stands?

jquesada2016 avatar Aug 19 '23 13:08 jquesada2016

According to the roadmap it is planned for 0.12.

thunderstorm010 avatar Sep 01 '23 00:09 thunderstorm010

couldn't this be closed now?

max397574 avatar Oct 30 '23 16:10 max397574

Implemented in #2123.

hecrj avatar Nov 01 '23 01:11 hecrj