Open linuxcaffe opened 9 years ago
This is on my todo list for sure. There is some stuff with annotations, dependencies and context that I want to work through first. I'm not very familiar with syntax highlighting in vim so I'll have to look into it. If it's easy I'll do it soon (as it would make things much easier to read) otherwise it will have to wait.
I'm certainly no vim syntax expert, but I have seen 2 excellent examples of vim-syntax for task, and that's vim-taskwarrior and taskwiki. They both do it differently, but between them there are fine examples, and both developers are available for comment.
AND, it's a nice-to-have feature, but not critical, so it takes as long as it takes ;-)
Thanks for the advice!
vim-taskwarrior does it well by simply mapping field to syntax-element, taskwiki goes one step further, and can use active taskwarrior-theme colors, for charts and some fields, with the help of https://github.com/powerman/vim-plugin-AnsiEsc
I just discovered taskwarrior/cmd minimal (or any other report) and wow! awesome! I think this is one of the places where taskwiki uses the AnsiEsc plugin. (although taskwiki can't currently display reports other than "charts")
I only see color codes for the list header, it might be better to eliminate those codes, if AnsiEsc is not present.
There are 3 sub-groups of color that Utw might encounter;
wrt # 1, easiest? wrt # 2, hardest! wrt # 3, here are some ideas for mapping fields to highlight element;
The fact that color shows up when using taskwarrior/cmd is a happy accident actually. I probably would've stripped it out if I noticed it. When I was thinking of colors I was thinking of 3. Though maybe the first is pretty easy to do.
(making notes and thinking out loud)
Sources of color/ highlighting in relation to tasklists (not previews);
Some of this may be doable before 1.1 but I don't want to hold off on a release candidate.
How about a splash of color?
Using [ ] or [+] or [?] for status-colors, and using prefixes or indentation to color tags and projects, could make the list more pleasing to look at, easier to read.Taskwiki uses https://github.com/powerman/vim-plugin-AnsiEsc to pull task-native colors, maube unite-tw could do something like that?