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

feat(introspector): Todo-introspector improvements #1539

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

mtrajano
Copy link
Contributor

Added documentation and configurability to the todo-introspector. By default should behave as the old one, but you now have the ability to configure:

  • The format and highlight group it displays in
  • Which tasks are counted towards completed and total tasks

Screenshot 2024-07-25 at 10 35 13 PM

Also closes #1512 in terms of documentation needed

* Added documentation so it shows in the wiki
* Made it a lot more configurable
-- Defaults to the following: `done`.
completed_statuses = {
"done",
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured it's technically possible for a user to count something like "cancelled" towards completed tasks

total,
(total ~= 0 and math.floor((completed / total) * 100) or 0)
)
-- stylua: ignore end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep parameters above in multiple lines, it was formatting into a single line method call (making it harder to read)

@vhyrro
Copy link
Member

vhyrro commented Aug 8, 2024

Looks good to me, thank you! Haven't been able to break it.

@vhyrro vhyrro merged commit fd11950 into nvim-neorg:main Aug 8, 2024
5 of 6 checks passed
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.

Config for todo_items - disable [x/y] (z%) count at parent todos
2 participants