humbleui 2023-12-29

I'm trying to make a REPL UI and noticed that the texfield does not permit multi-line entries. Am I doing something wrong or should I add it?

Specifically, if I hit 'enter' / 'return' no newline appears

After that, I want to tap into new Skia text API to get multiline right, so there’s lots of research too
Is it hard to implement? (I want to implement something like markdown text editor)

no - it's OK. I want to contribute so I'm happy to do the work if you're happy to answer a few questions

But if it relies on the work you’re doing now, I’m also happy to wait

The main issue I had when reading the code was to know which parts affect the others and which parts are incidental or only act as visual scaffolding

There’s a huge refactoring underway that will touch every component so let’s just wait. After that, I want to tap into new Skia text API to get multiline right, so there’s lots of research too

🍀 2

Ok - no problem. I’m eager to see what you will do and am very impressed with the work so far. I think it’s time to push the sponsor button!

or do I just need to add \n to the text by listening to the return / enter key?

hmmm ... seems like it's not just the \n

ok, seems like it has to be a multi*line* component... I'm new to this stuff 🙂

hmm gotta say that I have spent a few hours looking around the libraries and am pretty lost as to how to get started. @tonsky any initial pointers to outline the needed approach would be very helpful 🙏🏼

Yeah, multiline text editor is not in Humble UI yet

Single-line only

It has to be implemented from scratch

I’ll get to it probably in February? It’s next on the list right next to component model that I’m doing right now

Sorry to disappoint