-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Implement a settings-based approach to customise the text used for group titles, including templating for values like number of tasks #1604
Comments
Hi @TomWol, thank you for logging this. I am deep in continuing work on the custom statuses at the moment, so haven't much time to be thinking about other stuff. In the meantime, is there any chance of a bullet-point summary of this please? It would be good to understand if it is one feature or several... Thanks! |
Hi @claremacrae, thank you for your response and hard work. Good luck with the custom statuses! To summarize, I propose 2 features:
|
Hi @TomWol, thank you for the summary. I understand now. I am a bit stuck about what to do with this...
|
|
Ok I see that your proposed implementation - settings to edit how different group headings are displayed, with a replaying facility for things like number of tasks, is effectively one thing which will solve both feature requests. I will rename the feature title to make it consistent with what is being requested. It is a lot of work, though. |
Some ideas for alternative implementations to get the same, or similar, benefits for a lot less work. Separate feature requests would be welcome/appreciated, if you feel they would help you. Numbers before priority namesThe reason for the numbers before the names of priorities is #920.. Which is going to be worked on soon. Currently all group names are sorted alphanumerically - which doesn't give a good order for priority names. Once that is fixed, it will be easy for us to remove the numbers before the priority names, but still have High appear first, and Low appear last. So yes, a separate feature request proposing your preferred new names for the priority fields would soon be very easy to do. Showing task counts in groupsIt's a nice idea to show the number of tasks in each group. It has been requested before, but I cannot find it. |
Many thanks for writing up your proposals. I have mulled them over, and feel that the specific examples given can be more easily implemented as separate features. What you propose would be more flexible, I agree, but a lot more work. So I would rather make the improvements to the underlying features, partly so that users did not have to learn to customise the settings, but mainly to use volunteer developer time as effectively as possible, to benefit the widest number of users.
I think the initial solution to this particular example is to improve the titles used by default for priority, to remove the need for the numbers to enforce the desired sort order. I have written that up in #1628. A more flexible approach to this may come out of the #1421 pull request.
Good idea to show the task count on groups. I have written this up as a separate feature request in #1627. |
In view of my comments above, and the proposed simpler implementations, I am closing this as 'not planned'. This doesn't mean 'will never be implemented', but does mean 'unlikely to ever be implemented...' |
🔖 Feature description
Similar, but different to #1133, also referenced in my comment at #1519:
group by
is in a kind of unattractive format:2023-01-04 Wednesday
andPriority 3: None
. Particularly the priorities one with the numbering is jarring when not all priorities are used (and thus, not all numbers are shown). The Feat Themeability branch at feat: New CSS classes for "themeability" #1519 will probably allow for further css formatting of these headers, however I propose a way to alter the text displayed in order to not have to try and do that in CSS.In the above screenshot, the first callout contains pure Tasks code. For the second, I used Dataview to query which priorities are in the results. I then create custom headers for these priorities in the DataviewJS code block, and then under each header there is a Tasks query specific to the priority mentioned in the header.
This is inefficient as I am querying my data twice in two separate plugins. But I vastly prefer the look of it.
So just being able to customize the format for a
group by
would be great.group by (due date|priority|...) with task count
functionality, inserting the task count for that group in the header. As seen in the second screenshot, simulated with DataviewJS.Thanks for a great plugin!
✔️ Solution
Like for the different Priorities, it shows:
with editing buttons allowing you to replace them with text of your choice, add icons, etc.
For Dates it allows you to specify the date format, also add icons and more formatting, etc.
group by (due date|priority|...) with task count
I think could be clear. Or, if you implement the previous Settings feature, you might allow for certain Tasks variables to be defined such as {{TASKCOUNT}}, which will match the task count for that group.❓ Alternatives
What is mentioned in #1133 is not bad, I would use it. But with my solution, allowing you to change the default formatting, you don't have to specificy the same formatting every time you use
group by
, it is defined globally. Thus keeping the Tasks queries simple.Having both could be ever better, of course.
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: