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

Add Todo.txt syntax #2375

Merged
merged 5 commits into from
Oct 30, 2022
Merged

Add Todo.txt syntax #2375

merged 5 commits into from
Oct 30, 2022

Conversation

BANOnotIT
Copy link
Contributor

Todo.txt has 11k installs on PackageControl

@BANOnotIT
Copy link
Contributor Author

@sharkdp I need help with debugging syntax since one part of it doesn't work.

This is what I have in sublime:
image

And this is what I get with bat:
image

The problem is that bat doesn't understand key:pair somehow.

key:pair syntax have this definition:

    - match: (\s+[^\s:]+:[^\s:]+)+\s*$
      comment: Custom attributes
      scope: variable.annotation.todotxt.attribute

Do you know what can be a problem? RegEx doesn't seem to be hard

@keith-hall
Copy link
Collaborator

I think the answer is that Monokai Extended.tmTheme doesn't target the variable.annotation scope, so that text stays with the color defined for entity[.task].

@BANOnotIT
Copy link
Contributor Author

@keith-hall so what if I create a patch that changes variable.annotation to variable.other?

@BANOnotIT BANOnotIT changed the title WIP: Add Todo.txt syntax Add Todo.txt syntax Oct 29, 2022
@BANOnotIT
Copy link
Contributor Author

I created a patch for theme and this is what it looks like
image

@sharkdp sharkdp merged commit 41b40f9 into sharkdp:master Oct 30, 2022
@sharkdp
Copy link
Owner

sharkdp commented Oct 30, 2022

Thank you!

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

Successfully merging this pull request may close these issues.

3 participants