taskell icon indicating copy to clipboard operation
taskell copied to clipboard

Create/edit multi-line description

Open sant0s opened this issue 4 years ago • 8 comments

Allow creating/editing tasks with descriptions consisting of multiple lines.

Note: taskell already displays multi-line descriptions (lines starting with >) correctly.

sant0s avatar Mar 16 '20 10:03 sant0s

This one's been on my list for ages. It will involve rewriting the text cursor code... which I'm a bit scared of.

smallhadroncollider avatar Mar 16 '20 12:03 smallhadroncollider

No worries/rush. :)

sant0s avatar Mar 17 '20 17:03 sant0s

This feature would be really helpful. Oh.. If I would only know how to code on haskell to help :)

kriloleg avatar Aug 19 '20 07:08 kriloleg

There seems to be an issue with the > method described above.

Version: 1.10.1

### Test

- Some Task
    > Requirements:
    > - Squash commits into their origins.
    > - 100% coverage across new additions. 

The md file described above produces the following output on my system:

Requirements:
- Squash commits into their origins.
-
100% coverage across new additions.

If I add a fourth line, it outputs that one correctly. If I add a fifth line, it adds an extra newline like the first example with three items.

kevr avatar Mar 22 '21 16:03 kevr

@kevr That's a weird one. Wonder if the - character is confusing the parser?

smallhadroncollider avatar Mar 30 '21 10:03 smallhadroncollider

@smallhadroncollider Would it be a workaround to support typing \n into the description and then converting that when it gets saved? I wonder if this would be a simple change that could make it easier to ship until such time as the text cursor rewrite might happen.

PS> Thanks a lot for taskell, it's absolutely epic. ❤️

chmac avatar Aug 10 '21 12:08 chmac

After a lot of pain, I finally got it working in v2.0 of taskell that I'm currently working on. I hope that I'll be able to get this version out in the next few months. Unfortunately, I don't think it will backport to v1 easily.

(Glad you like it!)

smallhadroncollider avatar Aug 10 '21 12:08 smallhadroncollider

@smallhadroncollider I saw the v2 repo, awesome that it's included there. Looking forward to being able to test it. 👍

chmac avatar Aug 10 '21 13:08 chmac