taskpaper.vim icon indicating copy to clipboard operation
taskpaper.vim copied to clipboard

Feature: tag styles

Open davidoc opened this issue 12 years ago • 6 comments

The idea is to allow customised styles for tags, e.g. @started in green text, @FAIL with red background.

davidoc avatar Mar 06 '12 21:03 davidoc

+1

jgallen23 avatar Mar 07 '12 03:03 jgallen23

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?!)

davidoc avatar Mar 08 '12 00:03 davidoc

I've pushed this to a new branch https://github.com/davidoc/taskpaper.vim/tree/feature-tagstyles

davidoc avatar Mar 08 '12 00:03 davidoc

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?

jgallen23 avatar Mar 09 '12 19:03 jgallen23

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.

mattsacks avatar Mar 10 '12 01:03 mattsacks

@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.

davidoc avatar Mar 13 '12 21:03 davidoc