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 tooIs it hard to implement? (I want to implement something like markdown text editor)
Took me about a month, probably https://github.com/HumbleUI/HumbleUI/blob/main/dev/examples/text_field.clj
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
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!
Thank you!
Need to surface this? https://github.com/HumbleUI/JWM/blob/main/examples/dashboard/java/PanelTextInput.java
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
like this https://github.com/HumbleUI/HumbleUI/blob/main/src/io/github/humbleui/ui/text_field.clj
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