How to make tags colored when using show/last/today
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 ?
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.
Perfect, thanks!
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
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
todaybut when I uselastthe first tag is not using colors. Maybe the regex pattern does not catch it. My entry was done like thisdoing now @tagA @tagB text text textand @tagA was not using colors fordoing 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: @.***>
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?
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?
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: @.***>