WilliamKarolDiCioccio / open_local_ui

OpenLocalUI: Native desktop app for Windows, MacOS and Linux. Easily run Large Language Models locally, no complex setups required. Inspired by OpenWebUI's simplicity for LLM use.
MIT License
16 stars 2 forks source link

Copy & paste of code not working #17

Closed Rossi1337 closed 4 weeks ago

Rossi1337 commented 4 weeks ago

When the response contains code snipptets or code references these are formatted. This is nice. But you cannot select the code parts to copy from the code.

WilliamKarolDiCioccio commented 4 weeks ago

Its a problem I've been facing since the beginning and still don't know how to get around it. Give me the time to recover some resources I found on the problem, I'll leave the links here

WilliamKarolDiCioccio commented 4 weeks ago

This issue from the highlight.dart repository (one of the subpackages of flutter_highlighter, the one responsible for the problem) shows that there is a pull request to add the functionality waiting for approval since long ago. Now, I found a fork from a user that seems to be implementing the changes. I forked it on my own and I'm testing it in the new branch. If you want you too can experiment with it

WilliamKarolDiCioccio commented 4 weeks ago

I almost destroyed the entire tree 😨! Tomorrow I'll finish fixing other small problems related to markdown code widget and merge

WilliamKarolDiCioccio commented 4 weeks ago

If you can do some research on text selection across widgets as my fix doesn't cover this issue therefore we cannot select code and other text as a single text block but rather we have to do it separately

WilliamKarolDiCioccio commented 4 weeks ago

Fixed the issue and correctly added submodule. Closing this as complete and opening #22