Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: tag styles #32

Open
davidoc opened this issue Mar 6, 2012 · 6 comments
Open

Feature: tag styles #32

davidoc opened this issue Mar 6, 2012 · 6 comments
Milestone

Comments

@davidoc
Copy link
Owner

davidoc commented Mar 6, 2012

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

@jgallen23
Copy link
Contributor

+1

@davidoc
Copy link
Owner Author

davidoc commented Mar 8, 2012

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
Copy link
Owner Author

davidoc commented Mar 8, 2012

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

@jgallen23
Copy link
Contributor

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?

@mattsacks
Copy link
Contributor

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.

@davidoc
Copy link
Owner Author

davidoc commented Mar 13, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants