doing icon indicating copy to clipboard operation
doing copied to clipboard

How to make tags colored when using show/last/today

Open krzysiek-b opened this issue 3 years ago • 7 comments

Seems the template contains title which contains tags. My goal would be to color the tags in same manner theya re colored when adding new entry (orange?).

Is there any template tag I can use to spearatelly display title and its tags ?

image

krzysiek-b avatar May 10 '22 10:05 krzysiek-b

If you set tags_color in the root config or in any template (default in this case), it should highlight tags. Set it to any color name that the template engine recognizes (see doing colors).

There is a %tags placeholder, but there's not one that shows a title minus tags.

ttscoff avatar May 10 '22 13:05 ttscoff

Perfect, thanks!

krzysiek-b avatar May 10 '22 13:05 krzysiek-b

I think we have a small bug here. This seems to work as expected for today but when I use last the first tag is not using colors. Maybe the regex pattern does not catch it. My entry was done like this doing now @tagA @tagB text text text and @tagA was not using colors for doing last

krzysiek-b avatar May 10 '22 13:05 krzysiek-b

This will take some digging and I won't get to it for a while. If you know a little bit of Ruby, feel free to dig into source and see if you can find the issue. Otherwise I hope to find time to look at it in a week or so.

On 10 May 2022, at 8:30, krzysiek-b wrote:

I think we have a small bug here. This seems to work as expected for today but when I use last the first tag is not using colors. Maybe the regex pattern does not catch it. My entry was done like this doing now @tagA @tagB text text text and @tagA was not using colors for doing last

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/doing/issues/145#issuecomment-1122397320 You are receiving this because you commented.

Message ID: @.***>

ttscoff avatar May 10 '22 17:05 ttscoff

The last command provides colorized tags for me...

I'm not sure why you wouldn't be getting them. The other tags in the entry are colored?

ttscoff avatar May 13 '22 16:05 ttscoff

The problem exists always on my side and it might be connected with me using Ubuntu on Windows. I will try use it directly on Windows or Ubuntu and let you know if you're interested?

krzysiek-b avatar May 16 '22 11:05 krzysiek-b

Yeah, if you can track down anything that narrows down what might be causing it, I'd love to hear about it.

On 16 May 2022, at 6:33, krzysiek-b wrote:

The problem exists always on my side and it might be connected with me using Ubuntu on Windows. I will try use it directly on Windows or Ubuntu and let you know if you're interested?

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/doing/issues/145#issuecomment-1127558204 You are receiving this because you commented.

Message ID: @.***>

ttscoff avatar May 16 '22 12:05 ttscoff