humbleui

ray 2023-12-29T13:32:48.459259Z

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?

ray 2023-12-29T13:33:31.353039Z

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

Wild Print 2024-01-08T11:30:17.561269Z

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

Niki 2024-01-08T15:31:02.021989Z

Took me about a month, probably https://github.com/HumbleUI/HumbleUI/blob/main/dev/examples/text_field.clj

2
ray 2023-12-30T09:48:31.605709Z

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

ray 2023-12-30T09:53:22.442029Z

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

ray 2023-12-30T09:54:54.146809Z

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

Niki 2023-12-30T11:47:38.241369Z

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
ray 2023-12-30T11:49:50.530409Z

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!

Niki 2023-12-30T11:56:20.151689Z

Thank you!

ray 2023-12-29T13:52:16.632239Z

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

ray 2023-12-29T14:36:45.211779Z

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

ray 2023-12-29T15:16:17.132759Z

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

ray 2023-12-29T16:59:09.502099Z

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 🙏🏼

Niki 2023-12-29T23:58:14.749609Z

Yeah, multiline text editor is not in Humble UI yet

Niki 2023-12-29T23:58:19.270269Z

Single-line only

Niki 2023-12-29T23:58:31.356229Z

It has to be implemented from scratch

Niki 2023-12-29T23:59:29.559359Z

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

Niki 2023-12-29T23:59:43.621659Z

Sorry to disappoint