Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-line text input #320

Closed
wesrer opened this issue Apr 24, 2020 · 14 comments
Closed

Multi-line text input #320

wesrer opened this issue Apr 24, 2020 · 14 comments
Labels
Milestone

Comments

@wesrer
Copy link

wesrer commented Apr 24, 2020

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.

@hecrj hecrj added the feature New feature or request label Apr 25, 2020
@hecrj hecrj added this to the 1.0.0 milestone Apr 25, 2020
@hecrj
Copy link
Member

hecrj commented Apr 25, 2020

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!

@the-drunk-coder
Copy link

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 😅

@dhardy
Copy link

dhardy commented Dec 17, 2020

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.

@Dimev
Copy link

Dimev commented Jul 26, 2021

How far along is at the moment?

@13r0ck
Copy link
Member

13r0ck commented Jul 28, 2021

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

@benluelo
Copy link

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?

@hecrj hecrj changed the title Multi-line textbox Multi-line text input Jan 18, 2022
@CodeDead
Copy link

Definitely a nice-to-have!

@hecrj hecrj pinned this issue May 3, 2022
@jellybobbin
Copy link

Definitely a nice-to-have!

@henry-lang
Copy link

would appreciate

@adracea
Copy link

adracea commented Feb 28, 2023

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.

@jquesada2016
Copy link
Contributor

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

@thunderstorm010
Copy link
Contributor

According to the roadmap it is planned for 0.12.

@max397574
Copy link

couldn't this be closed now?

@hecrj
Copy link
Member

hecrj commented Nov 1, 2023

Implemented in #2123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests