taskell
taskell copied to clipboard
Line breaking not working for long words in task description
I'm trying to set the description of a task to a long URL, but it is too long and instead of being broken into multiple lines, it hides the rest of the URL that does not fit inside the area (see the screenshot). The text is there, but it is simply out of view. The hyperlink doesn't work either, since it only considers the visible part. I think it would be nice if the long URL/word would be broken into multiple lines (and very nice if the hiperlink would still work). Nonetheless, thank you very much for this app, it seems amazing!

Nevermind, just saw this topic in your roadmap. Sorry...
I think the library I'm using has special support for URLs. I need to look into a bit more.
I've also noticed this issue, and was wondering if making the popup box a bit wider is also an option?

What library is used for line breaking? I could take a look
Looking in the code (as a non haskeller) it seems the lines are wrapped here usually, so that needs special casing for urls?
https://github.com/smallhadroncollider/taskell/blob/fb7feee61a4538869b76060651cf5c3bc2fcf3fd/src/Taskell/UI/Draw/Field.hs#L116
I've got it working in v2.0, but would be hard to backport to v1. Turned out to be much more complicated than it seems.