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

Support custom Task Count message in Tasks query [to remove need for an explanatory heading before the Tasks block] #2380

Open
4 tasks done
shauncassini opened this issue Oct 29, 2023 · 3 comments
Labels
scope: rendering of tasks How the plugin displays tasks (except CSS issues) type: enhancement New feature or request

Comments

@shauncassini
Copy link

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.
  • I am only requesting a single feature. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other users, not just me: it is not uniquely tied to my personal workflow.

🔖 Feature description

Hello! It would be useful to format the task count message displayed at the end of a query.

✔️ Solution

Example syntax for this could be tasks.query.message("%c task%s created"). Here, %c would parse as the count variable and %s would be _ if %c==1 and s otherwise (for plural English words).

Result: 2 tasks created or 1 task created
Screenshot from 2023-10-29 13-41-13

This way we don't have to add headers above queries - we can get the context we need from the query message.

❓ Alternatives

No response

📝 Additional Context

No response

@shauncassini shauncassini added the type: enhancement New feature or request label Oct 29, 2023
@claremacrae claremacrae added the scope: rendering of tasks How the plugin displays tasks (except CSS issues) label Oct 29, 2023
@claremacrae
Copy link
Collaborator

Hi @shauncassini,

Thanks very much for the suggestion.

This sentence really makes the intention clear.

This way we don't have to add headers above queries - we can get the context we need from the query message.

This reminded me of #2198. I'll add a comment there....

@claremacrae claremacrae changed the title Custom task count message in Tasks query Custom task count message in Tasks query [to remove need for an explanatory heading before the Tasks block] Oct 29, 2023
@claremacrae claremacrae changed the title Custom task count message in Tasks query [to remove need for an explanatory heading before the Tasks block] Support custom Task Count message in Tasks query [to remove need for an explanatory heading before the Tasks block] Oct 29, 2023
@claremacrae
Copy link
Collaborator

I've tweaked the summary slightly so the intent is clear when reading the Issues list...

@shauncassini
Copy link
Author

Hi @claremacrae, thanks for the quick response and for tweaking the summary. I'll keep an eye out on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: rendering of tasks How the plugin displays tasks (except CSS issues) type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants