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

Highlight overdue tasks #44

Closed
nikolay-turpitko opened this issue Jan 12, 2016 · 4 comments
Closed

Highlight overdue tasks #44

nikolay-turpitko opened this issue Jan 12, 2016 · 4 comments

Comments

@nikolay-turpitko
Copy link

Currently all dates are highlight using regexp, but it would be cool to highlight overdue dates as Error, for example. Preferably, only dates with "due:" prefix.

@victal
Copy link
Contributor

victal commented Jan 25, 2016

Hello,

I don't know much vimscript but judging from what I read in the docs, syntax highlighting works by matching the text with a keyword or pattern.

So I ended up implementing this highlight, but ended up using an external python script to generate the correct regexp for the date, which also means it won't work in a Vim installation without the +python option.

If that's not an issue I can send in a PR with the changes (or since I don't know vimscript that well, if someone knows a better way to do this, please tell!).

@freitass
Copy link
Owner

@victal I'm not sure it can be done in vimscript without a great complexity involved. The python solution is welcome if the plugin would still work (except for this feature, of course) for users without the +python option.

@nikolay-turpitko
Copy link
Author

@victal @freitass Thanks, guys! Works perfectly!

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

4 participants
@freitass @victal @nikolay-turpitko and others