Add separators for tasks from different notes/files #133
Replies: 15 comments 16 replies
-
I think this would also benefit from being able to group by file and/or directory. Although it looks like the plugin is already sorting by filename. so this is likely to be naturally taken care of. |
Beta Was this translation helpful? Give feedback.
-
I think this is a duplicate of https://github.com/schemar/obsidian-tasks/discussions/65 |
Beta Was this translation helpful? Give feedback.
-
I agree with grouping. Especially I'd like to see an ability to group by the containing folder. I'm very new to this plugin, so please let me know if there's already some way to see in which folder each task resides in. I can see that task items mention their file names, but I'm more interested in the folder name, because I have a vault for school stuff, and one folder for each school subject. Then, inside folders, my file names can be just dates like "2021-09-23.md" indicating the day when I wrote that content, but the date file name is not so informative in a task list. Thanks for support! 🙂 |
Beta Was this translation helpful? Give feedback.
-
@schemar With more and more tasks managed by Tasks, I feel that it would be very useful if one can group tasks, e.g. based on due date. As suggested, one can use multiple blocks to achieve the effect of grouping. However, the achieved effect of this method would be still be very different than the |
Beta Was this translation helpful? Give feedback.
-
@schemar I'm in the processing of moving about 500 tasks from ClickUp to Obsidian Tasks, so am pretty desperate to have this feature, and seriously debating having a go at implementing it. Could you offer any pointers about areas of the code to look at, as a starting point? |
Beta Was this translation helpful? Give feedback.
-
Just want to check my understanding... I know that this issue is focussed on grouping by note/file. However, I also as see this as a first step on the way to a more general grouping mechanism, which I am very desperate for - pretty much as described in #17 ... So I believe that the new instruction will begin And since the filter for file path is
I would start by making it group by the path from the root of the vault, so I would start by generating something like: #### Folder 1/File 1
- [ ] task 1
- [ ] task 2
#### Folder 1/File 2
- [ ] task 1
- [ ] task 2 |
Beta Was this translation helpful? Give feedback.
-
A bit of an update... I've been making a reasonable amount of progress, I feel, and I've got an implementation of the grouping code I'm quite pleased with. However, my challenge is around adjusting the rendering code, as I don't have any experience with async, await and Promise. I know how I want to have the new code obtain the groups, iterate over the groups, and draw the headings in between. But I want to be sure I won't break the current code in some subtle way. So my plan is to work on a tiny pull request that slightly reworks the current rendering code into a form where it will be really easy to add the grouping code. I'm hoping that this will be relatively easy to review... 🤞 |
Beta Was this translation helpful? Give feedback.
-
OK: initial preparatory PR created: #530 |
Beta Was this translation helpful? Give feedback.
-
Well, it's a long way to go yet, but in my development version, I've got tasks divided up by the file path! |
Beta Was this translation helpful? Give feedback.
-
Just to note that I’ve got a pretty complete implementation of grouping that I’m using successfully. @schemar if you ever get to the stage that you have the capacity to review and merge PRs, I’d be happy to work it up for release. |
Beta Was this translation helpful? Give feedback.
-
To anyone here who is comfortable cloning a fork of this project and testing their own build of it... I now have an in-progress pull request that implements the first few I'll be adding some comments to the code before finalising the PR, but it should definitely just work already... Here is the current user documentation on the new option: And there is a new CSS class h5.tasks-group-heading, h6.tasks-group-heading {
color: var(--text-muted) !important;
background-color: rgba(240, 240, 240, 0.94) !important;
}
h4.tasks-group-heading, h5.tasks-group-heading {
text-decoration: underline !important;
} |
Beta Was this translation helpful? Give feedback.
-
Here's an example of 3-level grouping, by folder, filename and heading: |
Beta Was this translation helpful? Give feedback.
-
#644 Is now merged and will be in the next release. |
Beta Was this translation helpful? Give feedback.
-
I'm pleased to announce that Tasks 1.6.0 has a |
Beta Was this translation helpful? Give feedback.
-
If there any specific questions about this, or requests for new types of group, it would be helpful for them to be in separate discussions. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, all tasks are shown together without any separators when querying them. It may also be helpful to have some kind of separators for tasks from different notes. The separators can be a dimmed horizontal lines that separate tasks from different files.
Of course, for some users, there can be too many separators, as the tasks may come from many files. Therefore, this option may be configurable from the configuration pane.
Beta Was this translation helpful? Give feedback.
All reactions