taskell icon indicating copy to clipboard operation
taskell copied to clipboard

Line breaking not working for long words in task description

Open gonced8 opened this issue 4 years ago • 4 comments

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!

2021-04-01-202515

gonced8 avatar Apr 01 '21 19:04 gonced8

Nevermind, just saw this topic in your roadmap. Sorry...

gonced8 avatar Apr 03 '21 22:04 gonced8

I think the library I'm using has special support for URLs. I need to look into a bit more.

smallhadroncollider avatar Apr 06 '21 07:04 smallhadroncollider

I've also noticed this issue, and was wondering if making the popup box a bit wider is also an option?

image

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

jelly avatar Oct 07 '21 15:10 jelly

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.

smallhadroncollider avatar Oct 11 '21 07:10 smallhadroncollider