taskpaper.vim
taskpaper.vim copied to clipboard
Feature: tag styles
The idea is to allow customised styles for tags, e.g. @started in green text, @FAIL with red background.
+1
I've got a first version of this, where you can set per-tag styles in a variable (e.g. in .vimrc):
let g:task_paper_styles={'wait': 'guifg=Blue', 'FAIL': 'guibg=Red guifg=White'}
It works as expected, but perhaps exposing the full highlight-args syntax is too complex (or is anything too complex for people who install Vim plugins?!)
I've pushed this to a new branch https://github.com/davidoc/taskpaper.vim/tree/feature-tagstyles
At first glance, I don't think it's too complex. I'm going to give it a try today. When do you think it'll make it in to master?
Rather than using an explicit color, it's probably best to link them to a highlight category. You can see the ones provided by your current colorscheme with :h group-name
and you can link them by using hi def link
.
@jgallen23 I've pushed it to master now.
@mattsa My intention was to allow users to pick colours (rather than choosing to have a tag appear as, say, a Comment or Identifier).
But I would like to make it simpler, e.g. so that a user doesn't have to specify ctermfg, ctermbg, guifg, guibg in full.