jfoucher / Jimmy

Gemini client for MacOs
MIT License
53 stars 3 forks source link

Add selectability for default text #5

Closed hugmouse closed 2 years ago

hugmouse commented 2 years ago

This commit allows selecting some text.

P.s. Now the text selection is quite strange because it only selects one line. For example, if we select everything with CMD + A and then try to do something with that context - it only selects one line.

It's more of an idea than a working solution, so feel free to suggest another solution 🤔

Screenshots

Screenshot 2022-02-21 at 13 36 39
jfoucher commented 2 years ago

Thanks for the pull requests, I have merged all 3 of them. Regarding text selection working weird, it's because each gemtext line is converted into a view. That was easier to do than try to generate one long AttributedString, although that would probably be the best way to allow text selection to work properly.